views:

4089

answers:

6

There seems to be an HTTP Status code 418: "I am a teapot". What does it do? Is it supported by all the browsers?

+13  A: 

It was an April fools joke and is not intended to be implemented (So don't rely on anything supporting it, however Emacs and Firefox (with patches) do). Take a look at wikipedia for more info.

Yacoby
I am not surprised by the emacsy support. :)
Paul Nathan
+35  A: 

This is a status code for a protocol that was introduced as an April Fools' joke in 1998.

On almost every April Fools' Day since 1989, the Internet Engineering Task Force has published one or more humorous RFC documents. You can find the whole list of these funny RFC documents on:

If you think that you can contribute to an April Fools' RFC document, the IETF is encouraging you to do so:

It kindly asks that entries are sent at least 2 weeks prior to April 1st so that the RFC Editor team would have enough time to review all the documents and to prepare those that will be published.


As for the coffee pot protocol, it is officially called the "Hyper Text Coffee Pot Control Protocol". Although the RFC describing it is not to be taken seriously, the protocol is specified accurately enough for it to be considered a non-fictional protocol. It is an extension of HTTP, which comes some additional verbs like BREW and WHEN, and with two error messages, one of which is 418: I am a teapot (...not a coffee pot!).

If this inspired you to start working on a physical implementation, you may want to start by understanding the basics from this Wikipedia article:

Daniel Vassallo
Mandatory plug for the excellent book: "The Complete April Fools' Day RFCs".
Richard
Protocol for a dedicated Coffebot? :-)
blntechie
+6  A: 

The HTCPCP server is a teapot. The responding entity MAY be short and stout. This code was defined as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol, and is not expected to be implemented by actual HTTP servers.

From Wikipedia.

Holli
+2  A: 

From Wikipedia

418 I'm a teapot The HTCPCP server is a teapot. The responding entity MAY be short and stout. This code was defined as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol, and is not expected to be implemented by actual HTTP servers.

Asaf R
+4  A: 

According to the RFC ( http://tools.ietf.org/html/rfc2324 ) This is part of a protocol called Hyper Text Coffee Pot Control Protocol. It's to support the automation of coffee machines via the internets.

From what I've seen lighthttp does not support it.

Also while this is a joke, it's actually very useful. As the 'internet of things' kicks off you will find the more lightweight it is to communicate with a low powered device the better.

Check out tiny motes, sun spots, wireless sensor networks, internet of things, real time web

steve
+12  A: 

It's a status code for people to ask a question about it in SO and get reputation for it :)

It looks like it is working for you as well :)
Daniel Vassallo