Skip to content
yutils
Example

Input (status code)

418

Output

418 I'm a teapot
Category: 4xx Client error (joke)
Description: The RFC 2324 (1998 April Fool's) joke code: "I cannot brew coffee because I am a teapot." Used as an Easter egg by Google and others.
Usage / FAQ

When to use

  • Look up the meaning and category of an unfamiliar status code
  • Pick the right response code for a REST API
  • Settle code-review debates between 401 vs 403, 404 vs 410, etc.
  • Learn the 1xx / 2xx / 3xx / 4xx / 5xx categorization
  • Trace the origin of joke codes like 418 (Easter eggs)

FAQ

Q.401 vs 403?
A.401 Unauthorized means "I don't know who you are" — authentication needed. 403 Forbidden means "I know who you are, but you can't do this". The names are confusing — remember by the message.
Q.404 vs 410?
A.404 Not Found means "not here right now" (might come back). 410 Gone means "deliberately removed forever" — useful so search engines drop the URL from their index.
Q.204 No Content vs 304 Not Modified?
A.204 means "success, no body" (e.g. after DELETE). 304 means "your cache is fresh, no body sent". Both omit the body, but the meaning is completely different.
Fun facts
  • HTTP status codes are governed by RFC 9110 (2022), which consolidated and updated RFC 7231 and others. 1xx informational / 2xx success / 3xx redirection / 4xx client error / 5xx server error — the first digit is the category, the rest is the subdivision. A simple rule that has lived for 30 years.

    RFC 9110 (2022)
  • 418 'I'm a teapot' was defined as an April Fools' joke in 1998 (RFC 2324, the Hyper Text Coffee Pot Control Protocol). Surprisingly, it stuck around — Cloudflare, Node.js, and others actually implement it, and it's now the go-to for 'reject this request, not seriously.'

    RFC 2324 (April Fools 1998)
  • 451 'Unavailable For Legal Reasons' is a nod to Ray Bradbury's *Fahrenheit 451* (a novel about book censorship). Standardized as RFC 7725 in 2015 for content blocked by legal censorship — a rare case where the number itself is an homage to an author.

    RFC 7725 (2015)