502
Bad Gateway
Server ErrorThe server, acting as a gateway or proxy, received an invalid response from the upstream server.
Category: 5xx Server Errors Standard: RFC 9110 First Appeared: HTTP/1.0
What is 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 relied on to fulfil the request.
Client Request
Server
Server Error
Common Causes
The upstream/origin server is down or crashing
A misconfigured reverse proxy or load balancer
Firewall blocking traffic between proxy and origin
The origin returned a malformed response
Ask AI Mentor about 502 Bad Gateway
Get instant help and explanation