502 Bad Gateway

A reverse proxy, load balancer, or CDN received an invalid response from the upstream origin server. The problem is between your edge and your backend, not between the client and the edge.

What It Means

The proxy successfully connected to the upstream server but received something it could not use: garbage data, a connection reset, or no response at all. Because the proxy cannot construct a valid response, it returns 502 to the client.

Common Causes

502 vs 503 vs 504

All three indicate the origin is the problem, not the edge or the client.

How to Diagnose

Use the Probe tool to confirm the 502 is visible from outside your network. Check the Status dashboard to see if the upstream cloud provider is reporting degradation. Use Traceroute to verify the network path between the edge and your origin. Then check your origin server logs, process status, and resource utilization.

Probe the endpoint to inspect the response.

Open Probe Tool