status Registered
Verified 2026-09-18 · registry updated
2025-09-15HTTP 502 Bad Gateway
A gateway or proxy received an invalid response from an upstream server.
Use 502 when your service depends on an upstream that responded incorrectly or unexpectedly.
httpstatus codeserver errorproxy
Response (http)
HTTP/1.1 502 Bad Gateway
Use 502 when your service depends on an upstream that responded incorrectly or unexpectedly.
Common mistakes
- Forwarding raw upstream error bodies or internal addresses to the client.
Registry reference: RFC9110, Section 15.6.3