Error AtlasError Documentation and Resolution

HTTP 502 Bad Gateway

502 Bad Gateway

A server acting as a gateway or proxy received an invalid response from the upstream server it depends on.

502 Bad Gatewaynetworking
502 Bad Gateway
  • The upstream service returned an invalid or malformed response to the proxy.
  • The upstream application is down or unstable.
  • Proxy, load balancer, or network configuration broke communication with the upstream.
  1. Check the upstream service health and logs.
  2. Review reverse proxy or load balancer configuration for protocol and routing mismatches.
  3. Inspect network timeouts and response formatting between the proxy and upstream.
MDN: 502 Bad Gateway
502 Bad Gateway: what it means and how to fix it | Error Atlas