HTTP 402 Payment Required vs 418 I'm a Teapot
Both HTTP 402 (Payment Required) and 418 (I'm a Teapot) belong to the 4xx Client Error category. 402 indicates that reserved for future use. Originally intended for digital payment systems, some APIs use it to indicate a billing or subscription issue. Meanwhile, 418 means that any attempt to brew coffee with a teapot should result in this error. An April Fools' joke from 1998 that became a beloved part of HTTP culture.
Description
Reserved for future use. Originally intended for digital payment systems, some APIs use it to indicate a billing or subscription issue.
When You See It
On some APIs when a subscription has expired or payment is needed.
How to Fix
Check your billing status, update payment method, or upgrade your subscription.
Description
Any attempt to brew coffee with a teapot should result in this error. An April Fools' joke from 1998 that became a beloved part of HTTP culture.
When You See It
As an Easter egg on some websites, or when a server humorously refuses a request.
How to Fix
Use a coffee pot instead of a teapot. Or just enjoy the joke.
Key Differences
HTTP 402: Reserved for future use. Originally intended for digital payment systems, some APIs use it to indicate a billing or subscription issue.
HTTP 418: Any attempt to brew coffee with a teapot should result in this error. An April Fools' joke from 1998 that became a beloved part of HTTP culture.
You encounter 402 when on some APIs when a subscription has expired or payment is needed.
You encounter 418 when as an Easter egg on some websites, or when a server humorously refuses a request.
When to Use Which
For 402 (Payment Required): Check your billing status, update payment method, or upgrade your subscription. For 418 (I'm a Teapot): Use a coffee pot instead of a teapot. Or just enjoy the joke.