HTTP 418: The Teapot That Refused to Leave

Green teapot with the number 418 on it

Among the serious, sensible HTTP status codes (200 OK, 301 Moved Permanently, 500 Internal Server Error) sits one that is not serious at all: 418 I’m a teapot.

Where it came from

On 1 April 1998, an RFC was published describing the “Hyper Text Coffee Pot Control Protocol”, a completely real-looking technical document for controlling coffee pots over the internet. It was an April Fools’ joke, written in perfectly straight-faced standards language.

In it, status code 418 means that the server refuses to brew coffee because it is, permanently, a teapot. The document even notes that the response body may be “short and stout”.

Why it’s still around

Developers loved it. It ended up in programming languages, frameworks and web servers as an Easter egg. When there was a suggestion in 2017 to remove it from some popular tools, people pushed back hard, and a “Save 418” movement was born.

In the end, the official HTTP specification reserved 418 so it can’t be given a “real” meaning. The teapot stays.

Is it useful for anything?

Some websites actually return 418 to requests they don’t want to deal with, like certain automated bots. So if your monitoring tool ever reports a 418 from your site, it’s worth checking whether a security plugin or firewall is blocking it.

Source: RFC 2324 – Hyper Text Coffee Pot Control Protocol

Comments

2 responses to “HTTP 418: The Teapot That Refused to Leave”

  1. Tea Drinker Avatar
    Tea Drinker

    Finally, representation.

  2. Coffee Drinker Avatar
    Coffee Drinker

    I’d like to file a complaint.

Leave a Reply

Your email address will not be published. Required fields are marked *