Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›HTTP Status Codes Reference›HTTP 418 I'm a teapot
4xx Client Error

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 code418
NameI'm a teapot
Class4xx Client Error
Defined inRFC 2324 (April Fools), reserved in RFC 9110
Cacheable by defaultNo, 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?

  1. 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.

Frequently asked questions

Is 418 a real HTTP status code?
It is reserved, not standardised. It originated in RFC 2324 as a joke and was kept reserved because many tools implement it.
Why did a site return 418 to my scraper?
Some sites use 418 to reject automated traffic. Check whether scraping is permitted and respect robots.txt.
Is 418 a client or server error?
418 is in the 4xx class, so it is classed as a client error: the request needs to change before it can succeed.