Skip to main content
HTTP/5xx (Server Error)

502 Bad Gateway

The server, while acting as a gateway or proxy, received an invalid response from the inbound server it accessed.

❓ Why does this happen?

Upstream application crashed, Nginx/proxy cannot connect to Node.js backend port.

✅ How to fix it

Check if the upstream application process is running and responding on its designated port.

Frequently Asked Questions

What does HTTP Status 502 mean?
The server, while acting as a gateway or proxy, received an invalid response from the inbound server it accessed.
Why am I getting a 502 status code?
Upstream application crashed, Nginx/proxy cannot connect to Node.js backend port.
How do I fix a 502 Bad Gateway error?
Check if the upstream application process is running and responding on its designated port.

Explore more HTTP Status Codes