Skip to content

Instantly share code, notes, and snippets.

@obihann
Last active August 29, 2015 13:56
Show Gist options
  • Save obihann/8975089 to your computer and use it in GitHub Desktop.
Save obihann/8975089 to your computer and use it in GitHub Desktop.
HTTP 418 Status Im a Teapot

#Hyper Text Coffee Pot Control Protocol

  The Hyper Text Coffee Pot Control Protocol (HTCPCP) is a facetious communications protocol for 
  controlling, monitoring, and diagnosing coffee pots. It is specified in RFC 2324, 
  published on 1 April 1998 as an  April Fools' Day RFC as part of an April Fools prank.

http://en.wikipedia.org/wiki/Hyper_Text_Coffee_Pot_Control_Protocol

<?php
/*
The Hyper Text Coffee Pot Control Protocol (HTCPCP) is a facetious communications protocol for controlling,
monitoring, and diagnosing coffee pots. It is specified in RFC 2324, published on 1 April 1998 as an
April Fools' Day RFC as part of an April Fools prank.
http://en.wikipedia.org/wiki/Hyper_Text_Coffee_Pot_Control_Protocol
*/
header("Status: 418 I'm a teapot");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment