Overview

A server further down the chain provided an invalid response.

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.

Further Reading

Specification

502 Bad Gateway | The HTTP Working Group

502 Bad Gateway

MDN web docs