HTTP 418 I'm a Teapot — What It Means

What HTTP status code 418 I'm a Teapot means, when servers return it, and how to handle it correctly.

Published September 25, 2026

HTTP 418 I'm a teapot is an April Fools' status from RFC 2324 (the Hyper Text Coffee Pot Control Protocol): a teapot cannot brew coffee. It is not used in real APIs but is a famous easter egg.

What it means

Some servers and libraries return it for fun or to flag unwanted bots.

Common causes: Humorous easter eggs; Bot or scraper deterrence by some sites; Testing HTTP clients.

On the wire

BREW /pot HTTP/1.1
HTTP/1.1 418 I'm a teapot
Content-Type: text/plain
A typical 418 exchange.

Practical examples

Test it from the shell

curl -i https://example.com/path   # look for HTTP 418

Handling 418 in code or config

res.status(418).send("I'm a teapot")

How to fix it

Do not rely on it in production; Treat it as a client error; Pick a standard code for real cases.

1. Reproduce: curl -i <url>
2. Confirm the status is 418
3. Apply the fix above and re-test

Common mistakes

  • Do not rely on it in production
  • Treat it as a client error
  • Ignoring the response headers that explain the details.

Key takeaways

  • 418 means I'm a teapot.
  • HTTP 418 I'm a teapot is an April Fools' status from RFC 2324 (the Hyper Text Coffee Pot Control Protocol): a teapot cannot brew coffee.
  • Read the response headers and logs for the exact cause.

FAQ

Is 418 official?

It is defined in a joke RFC but widely recognised.

Is 418 a client or server error?

It is a client error status code, in the 4xx class.

More HTTP articles