One useful email every Monday
New free tools, AI and network threats that matter, and one quick challenge. No spam, unsubscribe in one click.
Questions people ask
What does HTTP 502 mean?
A proxy or load balancer got an invalid response from the server behind it.
What causes a 502 error?
The app crashed, wrong upstream port, upstream closed the connection.
How do I fix 502?
Check the backend is running and listening on the port the proxy expects. Look at proxy and app logs.
Related tools
- HTTP status codesEvery common status code with causes and fixes, including Cloudflare 52x.
- Port lookupWhat runs on a TCP/UDP port, and whether to expose it.
- Windows event IDsSecurity event IDs explained, with what to alert on.
- Cron expression explainerRead any cron expression in plain English and see the next runs.
- Chmod calculatorLinux file permissions: tick boxes, get 755 or rwxr-xr-x, both ways.
Link to this tool
Found it useful? Paste this into your blog, wiki or runbook.
<a href="https://toolbini.com/net/http-status/502/">HTTP 502 Bad Gateway</a>Reviewed by the editorial team · Last reviewed 2026-11 · Report an error