Hussein Nasser
The Backend Engineering Show with Hussein Nasser
HTTP Code 502 Bad Gateway Explained (All its Possible Causes on the Backend)
0:00
-17:49

HTTP Code 502 Bad Gateway Explained (All its Possible Causes on the Backend)

502 Bad Gateway is one of the most infamous errors on the backend, it usually means “hey something wrong with your backend server” but it doesn’t really give enough information. 

In this video, 

I’ll go through details on why proxies and gateways like NGINX and HAProxy should consider throwing more fine detailed HTTP error codes.   502 Bad Gateway The server was acting as a gateway or proxy and received an invalid response from the upstream server.  

0:00 intro  

3:45 What Causes a 502 Bad Gateway?

8:00 Cloudflare HTTP error codes 

13:00 Security Implications

Support my work on PayPal

https://bit.ly/33ENps4

Become a Member on YouTube

https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join

🧑‍🏫 Courses I Teach

https://husseinnasser.com/courses

Discussion about this episode

User's avatar