Server Error

HTTP 502

Bad Gateway

The server, while acting as a gateway, received an invalid response from the upstream server.

What This Means

A proxy or load balancer tried to forward your request to another server, but that server gave a bad response.

Common Causes

Backend server crashed

Backend server overloaded

Network issues between servers

Deployment in progress

DNS resolution failure

How to Fix It

1

Wait and retry (often transient)

2

Check if backend services are running

3

Verify network connectivity

4

Check deployment status

How DevConsole Helps

DevConsole shows request timing to identify where delays occur. Useful for debugging gateway issues.

Get DevConsole Pro

Frequently Asked Questions

What does HTTP 502 Bad Gateway mean?

A proxy or load balancer tried to forward your request to another server, but that server gave a bad response.

How do I fix a 502 error?

Wait and retry (often transient) Check if backend services are running Verify network connectivity Check deployment status

Is a 502 error my fault?

No, 502 is a server error. This means the issue is on the server side, not with your request.