The reference desk — standardized codes, filed & searchableN° 2,372 entries · 11 collections ·
DirectoryCodes
The directory of the world’s codes

Front desk · HTTP Status Codes

5×× Server Error

502 Bad Gateway

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.