Front desk · HTTP Status Codes
5×× Server Error
502 Bad Gateway
· filed 2026-07-18 · click a code to copy
HTTP 502 Bad Gateway is a server error-class status code defined in RFC9110. A gateway or proxy received an invalid response from the upstream server.
Server-error responses admit the fault is on the server's side: the request was valid, but the server failed to fulfil it. On the wire, the response begins with the status line HTTP/1.1 502 Bad Gateway.