@http · HTTP status codes, explained HTTP/1.1 418 I'm a teapot ━━━━━━━━━━━━━━━━━━━━━━━━━ 4xx · Client error The server refuses to brew coffee because it is a teapot. WHAT IT MEANS ──────────────────────────────────────────────────────────── Defined in RFC 2324, the April Fools' Hyper Text Coffee Pot Control Protocol (HTCPCP). A teapot asked to brew coffee should refuse with this code. RFC 9110 reserves 418 so nobody gives it a real meaning, because so many implementations already return it. WHY YOU'RE SEEING IT ───────────────────────────────────────────────────── → Easter eggs and joke endpoints. → Some services use it to signal that they recognised and refused a bot. HOW TO FIX IT ──────────────────────────────────────────────────────────── → Ask for tea instead. → In real APIs, use a code with a defined meaning, such as 400, 403 or 429. EXAMPLE RESPONSE ───────────────────────────────────────────────────────── HTTP/1.1 418 I'm a teapot Content-Type: text/plain  I'm a teapot. I cannot brew coffee. related 400 Bad Request   403 Forbidden   405 Method Not Allowed spec RFC 9110 §15.5.19 https://www.rfc-editor.org/rfc/rfc9110#section-15.5.19 web https://athttp.com/418 ← curl athttp.com/417 curl athttp.com/421 →