The Short Answer
HTTP 418 means "I'm a teapot": the server refuses to brew coffee because it is a teapot. It comes from RFC 2324, the Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0), published on 1 April 1998 as a joke. It is not an error you need to fix on a normal website; if you receive one, the server chose to send it on purpose.
Where It Comes From
RFC 2324 describes a protocol for controlling networked coffee pots, with its own methods such as BREW and a rule that a teapot asked to brew coffee answers 418. In 2014, RFC 7168 extended the joke to tea. Neither document is part of the web as browsers and servers use it.
Its Status in HTTP Today
The current HTTP specification, RFC 9110, lists 418 as unused. It explains that the code was taken by the joke and has been deployed widely enough that it cannot be given a real meaning, so it stays reserved. In practice:
- Browsers show it like any other client error.
- Libraries and frameworks: many keep it in their lists of status codes, so a developer can send it with one line.
- Clients that do not know a 4xx code treat it as a general 400.
Where You Meet It
- Bot blocking: some sites answer automated traffic they do not want with 418, as a clear signal that the request was recognized as a bot.
- Easter eggs: a hidden page that returns 418 for fun.
- Tests: developers use it to check that a client handles an unexpected code.
You can reproduce one on your own server. In Nginx:
location = /coffee {
return 418;
}Then check it:
curl -i https://example.com/coffeeWhat to Do When Your Request Gets 418
If a script or tool of yours receives 418 from a site, the site has most likely classified it as a bot. Check these points:
- User agent: curl, wget, and most HTTP libraries send a user agent that names the tool. Set one that names your application and a way to contact you.
- Request rate: many requests in a short time look like scraping. Slow down; a rate limit usually ends in 429 Too Many Requests instead.
- Rules of the site: read its robots.txt and terms. If it offers an API, use that.
Do not disguise a script as a browser to get past a block. The site said no; ask the owner for access.
Should You Block Bots with 418?
You can, and some site owners do, because it makes blocked requests easy to spot in the access log. But a 403 says the same thing in a way every client, proxy, and monitoring tool understands. For crawlers you do want to slow down rather than block, a rate limit with 429 is the clearer answer. Whatever code you choose, block by behavior and by verified address ranges, not by the user agent alone: a user agent is only text that any client can change.
Why Not Use 418 in Your Own API
A status code tells clients, monitoring, and proxies what happened. 418 tells them nothing they can act on. Use the code that says what you mean:
| Situation | Better code |
|---|---|
| Unwanted client or bot | 403 |
| Too many requests | 429 |
| Invalid data in the body | 422 |
| Wrong body format | 415 |
The refusal case is in 403 Forbidden, validation errors in 422 Unprocessable Content, and the whole list in HTTP status codes explained.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations