HTTP Status Codes

HTTP 502 — Bad Gateway

HTTP 502 (Bad Gateway) means a server acting as a gateway or proxy received an invalid response from the upstream server it relies on. The visible server is fine; something behind it failed.

502s are common with reverse proxies, load balancers and CDNs (like Nginx or Cloudflare) when the backend application is down, overloaded or returning garbage. They're often transient but can also signal a real backend outage.

For SEO the risk mirrors 500: if Googlebot repeatedly gets 502s, it can't fetch pages, and sustained errors can reduce crawling and temporarily affect indexing. A brief blip is usually harmless.

Diagnose the backend and the proxy configuration — application crashes, timeouts between proxy and origin, or restarts. Recurrent 502s and 503s together point to capacity or stability problems worth escalating.

This is a technical SEO topic I handle for clients: Technical SEO →

Work together

Need help with this?

Tell me about your site and where you're stuck. I'll give you an honest read on what would actually move the needle.

Start a conversation →

Open for projects