Information
The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfil the request.
A server further down the chain provided an invalid response.
The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfil the request.
502 Bad Gateway | The HTTP Working Group
MDN web docs