418 I'm a teapot

HTTP 418 I'm a teapot is a 4xx client error status. An April Fools' joke from the Hyper Text Coffee Pot Control Protocol. Some servers use it to reject unwanted bots.

418Status code
4xxClient error
NoCacheable by default
RFC 2324Defined in

Common causes

What to do

Not meant for real APIs.

Example response

HTTP/1.1 418 I'm a teapot
Content-Type: application/problem+json

{"status":418,"title":"I'm a teapot"}

Returning 418 in code

Express   res.status(418).json({ … });
Flask     return jsonify(…), 418
PHP       http_response_code(418);
Go        w.WriteHeader(418)
nginx     return 418;

Other 4xx codes

Frequently asked questions

What does HTTP 418 mean?
An April Fools' joke from the Hyper Text Coffee Pot Control Protocol. Some servers use it to reject unwanted bots.
Is 418 an error?
Yes. It is a client error: the request needs to change before retrying.
Does a 418 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.