Error code guide502 Bad Gateway

Website shows 502 Bad Gateway

A gateway or proxy received an invalid response from an upstream server. The website, hosting platform, CDN, load balancer, or origin service is usually responsible for HTTP 502.

Model check required. HTTP status meaning is standard, but the operational cause depends on the website, CDN, gateway, application, and account context.
Reviewed Jul 17, 20265 minute guideWebsiteWebsites and web APIs
Quick answer

A gateway or proxy received an invalid response from an upstream server. The website, hosting platform, CDN, load balancer, or origin service is usually responsible for HTTP 502.

Start here: Refresh once after a short wait. Transient gateway failures can clear quickly.
Guided check

Match the symptom, then work through the safe checks.

0/4 checked

1. What best matches what you observe?

2. Complete only the checks that are safe for you.

4 user-level checks are available in this guide.Stop immediately if any warning condition applies.
Show stop conditions
  • The page handles payment or identity and you cannot confirm whether an action completed
  • The site redirects to an unexpected domain or asks for sensitive information

Likely causes

  • The origin server is down or returning an invalid response
  • A CDN, reverse proxy, or load balancer cannot reach the origin
  • A deployment or configuration change broke the upstream service
  • Temporary overload or network failure interrupted the backend

Quick checks, in order

Refresh once after a short wait

Transient gateway failures can clear quickly.

safe

Check whether the service reports an outage

Use the official status page rather than repeated refreshes.

safe

Try another network only to compare

A true 502 usually remains server-side across networks.

safe

If you own the site, inspect gateway and origin logs

Check health probes, timeouts, DNS, TLS, and upstream process state.

caution

Where does the HTTP error appear?

Everyone sees the error

The service owner or host must restore the upstream path.

Only one route fails

A specific backend service or deployment may be unhealthy.

It appears during a deployment

The new release, health check, or startup timing is a likely cause.

Stop and get qualified help when

Do not continue troubleshooting if any of these apply:
  • The page handles payment or identity and you cannot confirm whether an action completed
  • The site redirects to an unexpected domain or asks for sensitive information

Official support and model manuals

Use the full model number from the rating label. The manufacturer manual is the deciding reference when codes differ by region or product family.

Frequently asked questions

What does HTTP 502 mean?

A gateway or proxy received an invalid response from an upstream server.

Is this usually a browser problem?

Usually not. Browser state can contribute in some cases, but gateway, server, permission, rate-limit, or upstream conditions are common.

Keep diagnosing

Related troubleshooting guides

View more →
Internet & Wi-Fi5 min
403 Forbidden

Website shows 403 Forbidden

The server understood the request but refuses to authorize it. Permissions, login state, region, IP reputation, security rules, or a private resource can produce HTTP 403.

Internet & Wi-Fi5 min
429 Too Many Requests

Website shows 429 Too Many Requests

The service is rate-limiting requests from the browser, account, app, or IP address. Repeated refreshes, automation, extensions, shared networks, or service limits can trigger HTTP 429.

Internet & Wi-Fi5 min
503 Service Unavailable

Website shows 503 Service Unavailable

The server is temporarily unable to handle the request. Maintenance, overload, failed dependencies, disabled application pools, or capacity limits commonly produce HTTP 503.