All HTTP Status Codes
502
Bad Gateway
5xx Server Error
RFC 9110What it means
The server acting as a gateway or proxy received an invalid response from an upstream server. The problem is between your server and an upstream dependency.
Common causes
- Upstream server is down
- Reverse proxy misconfiguration
- Upstream server returned an invalid response
- CDN edge node issue
How to fix it
Check the health of upstream services. Review proxy/load balancer logs. Usually resolves when the upstream server recovers.
Test this status code live
Send real HTTP requests and inspect status codes directly in your browser.