418

From IndieWeb
(Redirected from 🫖)


418 is a little teapot, short and stout. Here is my handle, here is my spout. When I get all steamed up, hear me shout! Tip me over and pour me out!

Specifically, an April Fools joke, specified by RFC 2324: Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0). The HTTP 418 status was later reserved by RFC 9110: HTTP Semantics acknowledging it is “deployed as a joke often enough for the code to be unusable for any future use”.

16 years after the original April Fools, an “extension to HTCPCP to allow for pots to provide networked tea-brewing facilities” was published in the form of RFC 7168: The Hyper Text Coffee Pot Control Protocol for Tea Efflux Appliances (HTCPCP-TEA). This extends the use of the 418 error to all “TEA-capable pots that are not provisioned to brew coffee”.

Examples

Google

Error 418 (I’m a teapot)!? (archived) shows a customised error page and returns the HTTP 418 status code. The graphic will pour a cup of tea, triggered by interacting with it or by tilting your (mobile) device. The animation uses a sprite sheet and CSS.

Stack Overflow

Stack Overflow uses (used) 418 as an easter egg error code for failing XSRF/CSRF checks during form submissions, e.g. during login.

There's really no good HTTP status code for an XSRF violation, but it feels like it should be a class 4 code. Any objection to returning a 418?

2013-06-22 Benjamin Dumke-von der Ehe: Answer to “Stack Overflow returning HTTP error code 418 (I'm a teapot)?” (archived)

See Also