DevKits
418

I'm a teapot

4xx Client Error

Last updated:

The server refuses to brew coffee because it is, permanently, a teapot.

Description

The famous April Fools joke code from RFC 2324 (Hyper Text Coffee Pot Control Protocol). Not part of standard HTTP, but implemented by some servers as an easter egg.

When to use

For fun, or to reject bot traffic in a memorable way.

Specification

RFC 2324 (April Fools)

Examples

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

{"error":"I'm a teapot"}
Node.js (Express)
res.status(418).json({ error: "I'm a teapot" });
Go (net/http)
w.WriteHeader(http.StatusTeapot)
Python (Flask)
return jsonify({"error": "I'm a teapot"}), 418

Related status codes

All 4xx codes