HTTP 418 is a reserved status code. Its “I’m a teapot” meaning comes from RFC 2324, a 1998 April Fools’ specification about brewing coffee. The current HTTP specification, RFC 9110, lists it as unused.
Definiert in RFC 9110 §15.5.19 — 418 (Unused) · MDN-Referenz · RFC 2324 §2.3.2 — Hypertext-Kaffeemaschinen-Steuerungsprotokoll
RFC 9110 reserves 418 as unused. The teapot phrase comes from RFC 2324 §2.3.2, a 1998 April Fools’ specification.
curl -i https://funapi.dev/api/coffee/v1/teapot
The Coffee API returns 418 with an error message and an RFC 2324 reference. The hosted response also includes a requestId that varies by request.
{
"error": "I'm a teapot",
"message": "The requested entity body is short and stout. Tip me over and pour me out.",
"rfc": "RFC 2324"
}
Run the Coffee API teapot example
If you encounter a 418 from a live service, check that service’s documentation or proxy configuration. RFC 9110 gives the reserved code no standard application meaning.
Return 418 deliberately to check that your client, proxy and logs preserve an unexpected 4xx status. Assert the numeric status and inspect the JSON body.
Treat a deliberate 418 as a client error and keep the numeric status in logs. Use it to test your generic 4xx handling, including whether the response body remains available to the caller.
2 Endpunkte dieses Playgrounds antworten mit 418. Alle sind kostenlos, ohne Anmeldung und im Browser oder mit curl aufrufbar.
GET https://funapi.dev/api/coffee/v1/teapot — Try to brew coffee in a teapot (Coffee Shop API) Diesen Endpunkt öffnen und ausführenGET https://funapi.dev/api/faults/v1/status/{code} — Return any status code on demand (200–599) (Fault Injection API) Diesen Endpunkt öffnen und ausführenAlle HTTP-Statuscodes · Alle 55 Mock-REST-APIs · Einstiegsanleitung
Zuletzt aktualisiert