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

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

HomeOther ContentHTTP Code 502 Bad Gateway Explained (All its Possible Causes on the Backend)
ChannelPublish DateThumbnail & View CountActions
Channel AvatarPublish Date not found Thumbnail
0 Views
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

️Listen to the Backend Engineering Podcast
https://husseinnasser.com/podcast

Backend Engineering Videos
https://backend.husseinnasser.com

Database Engineering Videos
https://www.youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2

Load Balancing and Proxies Videos
https://www.youtube.com/playlist?list=PLQnljOFTspQVMeBmWI2AhxULWEeo7AaMC

️ Software Archtiecture Videos
https://www.youtube.com/playlist?list=PLQnljOFTspQXNP6mQchJVP3S-3oKGEuw9

Messaging Systems
https://www.youtube.com/playlist?list=PLQnljOFTspQVcumYRWE2w9kVxxIXy_AMo

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

Support me on PayPal
https://bit.ly/33ENps4

Stay Awesome,
Hussein

Please take the opportunity to connect and share this video with your friends and family if you find it useful.