What it means
Defined in RFC 2324, the April Fools' Hyper Text Coffee Pot Control Protocol (HTCPCP). A teapot asked to brew coffee should refuse with this code.
RFC 9110 reserves 418 so nobody gives it a real meaning, because so many implementations already return it.
Why you're seeing it
- Easter eggs and joke endpoints.
- Some services use it to signal that they recognised and refused a bot.
How to fix it
- Ask for tea instead.
- In real APIs, use a code with a defined meaning, such as
400,403or429.
Example response
HTTP/1.1 418 I'm a teapot Content-Type: text/plain I'm a teapot. I cannot brew coffee.