HTTP Status Codes / 4xx HTTP Status Codes / HTTP 418

418 I'm a teapot (RFC 2324, RFC 7168)

This is an educational reference page about HTTP 418 I'm a teapot. The page itself is served as 200 OK so it can be indexed as HTTP documentation.

This code was defined in 1998 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. The RFC specifies this code should be returned by teapots requested to brew coffee. This HTTP status is used as an Easter egg in some websites, such as Google.com's I'm a teapot easter egg.[53]

What it means

HTTP 418 I'm a teapot is a real registered status code from an April Fools RFC, but it is not intended for normal production errors.

Common causes

How to fix it

Example response

HTTP/1.1 418 I'm a teapot
Content-Type: text/plain

Short and stout

Developer notes

418 is widely recognized by developers, but it should not replace precise status codes such as 400, 403, 404, or 500.

Questions

What does HTTP 418 mean?

HTTP 418 means I'm a teapot. It is a registered joke status code and is rarely appropriate for production API errors.

Is 418 I'm a teapot real?

Yes. HTTP 418 exists, but it came from an April Fools specification and is mostly used as a joke or easter egg.

Should APIs use HTTP 418 for real errors?

Usually no. Production APIs should use a status code that describes the actual client or server error.

4xx client error – the request contains bad syntax or cannot be fulfilled


HTTP status code lookup
By Ping Now, a website/API/service uptime monitor
Data from Wikipedia