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

The Backend Engineering Show with Hussein Nasser

Episode | Podcast

Date: Fri, 30 Apr 2021 05:00:00 GMT

<p>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.&nbsp;</p> <p><br /></p> <p>In this video,&nbsp;</p> <p>I’ll go through details on why proxies and gateways like NGINX and HAProxy should consider throwing more fine detailed HTTP error codes. &nbsp;&nbsp;502 Bad Gateway The server was acting as a&nbsp;gateway&nbsp;or proxy and received an invalid response from the upstream server. &nbsp;</p> <p><br /></p> <p>0:00 intro &nbsp;</p> <p>3:45 What Causes a 502 Bad Gateway?</p> <p>8:00 Cloudflare HTTP error codes&nbsp;</p> <p>13:00 Security Implications</p> <p><br /></p> <p>Support my work on PayPal</p> <p><a href="https://bit.ly/33ENps4">https://bit.ly/33ENps4</a></p> <p>Become a Member on YouTube</p> <p><a href="https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join">https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join</a></p> <p><a href="https://emojipedia.org/teacher/">🧑‍🏫</a><strong> </strong>Courses I Teach</p> <p>https://husseinnasser.com/courses</p>