Definition
A gateway or proxy received an invalid response from the upstream server it contacted.
In practice
A 502 from a reverse proxy often sends the investigation toward the upstream application or its connection.
What to check next
A status code is one signal in a website or API check. Compare it with the response content, check location and incident history before deciding what changed.