HTTP 418 I'm a teapot
HTTP 418 I’m a teapot comes from a 1998 April Fools’ joke spec (the Hyper Text Coffee Pot Control Protocol) and means the server refuses to brew coffee…
Quick answer
HTTP 418 I’m a teapot comes from a 1998 April Fools’ joke spec (the Hyper Text Coffee Pot Control Protocol) and means the server refuses to brew coffee because it is a teapot. It is not a real error, though some sites use it to reject bots or as an Easter egg.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 418 I'm a teapot mean?
RFC 9110 reserves 418 so it will not be assigned another meaning, because it is widely implemented as a joke. Using it in a production API is confusing; pick a real 4xx code.
| Status code | 418 |
|---|---|
| Name | I'm a teapot |
| Class | 4xx Client Error |
| Defined in | RFC 2324 (April Fools), reserved in RFC 9110 |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | No: change the request first |
What causes HTTP 418?
- An Easter egg, a test endpoint, or a deliberate bot rejection.
How do I fix HTTP 418?
- Replace with a meaningful code (403, 429) in production APIs.
What should a client do after HTTP 418?
Treat as a generic 4xx error.
Does HTTP 418 affect SEO?
Pages returning 418 are not indexed. Make sure bot rules returning 418 do not hit Googlebot.
Example 418 response
HTTP/1.1 418 I'm a teapot
Date: Mon, 01 Dec 2026 12:00:00 GMT
Content-Type: application/json
{"error":{"status":418,"message":"I'm a teapot"}} How to return 418 I'm a teapot in code
Express (Node.js)
res.status(418).json({ error: 'I'm a teapot' }); Next.js route handler
return Response.json({ error: 'I'm a teapot' }, { status: 418 }); FastAPI (Python)
raise HTTPException(status_code=418, detail="I'm a teapot") PHP
http_response_code(418); Nginx
location = /example {
return 418;
} Other 4xx status codes
The request contains an error or cannot be fulfilled as sent. Fix the request before retrying.
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Content Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 421 Misdirected Request
- 422 Unprocessable Content
- 423 Locked
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 451 Unavailable For Legal Reasons
- 499 Client Closed Request
Frequently asked questions
Is 418 a real HTTP status code?
Why did a site return 418 to my scraper?
Is 418 a client or server error?
Related
- 403 Forbidden HTTP 403 Forbidden means the server understood the request but refuses to allow it.
- 429 Too Many Requests HTTP 429 Too Many Requests means the client has sent too many requests in a given time and is being rate limit.
- 400 Bad Request HTTP 400 Bad Request means the server cannot process the request because of a client error, such as malformed .
- Open the HTTP Status Codes Reference → Free, no signup.