What Does HTTP Status 502 Mean? (Bad Gateway)

What HTTP 502 (Bad Gateway) Means In Plain English

A 502 status (Bad Gateway) means a gateway/proxy received an invalid response from an upstream server.

If you want the broader context across all status code families, use the full HTTP Status Codes Guide (2xx, 3xx, 4xx, 5xx).

Quick Navigation

How to Read HTTP 502 in WebsiteDown Results

When checker regions return 502, your edge path is reachable but upstream services or handoff behavior are failing. Focus on proxy-to-origin links.

If you see this code only in one region, compare with official provider status and retest from another network. Mixed regional results often indicate routing, policy, or edge differences rather than full global outages.

For deeper triage, compare this with the HTTP 504 guide, HTTP 500 guide, and the origin vs edge decision tree.

Most Common Root Causes

What to Do Next

  1. Identify where 502 is generated (CDN, load balancer, reverse proxy).
  2. Compare upstream health and response validity by region.
  3. Review deploys affecting proxy config and upstream targets.
  4. Validate TLS/protocol compatibility across hops.

What to Avoid During Triage

Real-World Examples

Share this guide:

FAQ

Is 502 an origin outage?

Sometimes, but often it is a proxy/upstream communication failure rather than total origin unreachability.

Why does 502 appear in one region only?

Regional edge-to-origin routes can fail independently.

Can retries help 502?

Short bounded retries can help transient cases, but root-cause fix is usually at gateway/upstream config.