title: Throwing 502 errors AWS
body: <p>What might be the possible reason why the <strong>502</strong>s were being returned here?</p>
  <p>The <strong>403</strong>s also look like <strong>WAF</strong> is firing them. Could anyone please suggest a way to allow those resources to be safely given to clients?</p>
  <p><strong>Below is a list of the errors:</strong></p>
  <pre><code>Non 200 returned on https://www.abcd/files/ftp_upload/61325/61325fig1large.jpg on 61325.
  Headers: HTTP/1.1 502 Bad Gateway
  Server: awselb/2.0
  Date: Sat, 25 Sep 2021 04:33:56 GMT
  Content-Type: text/html
  Content-Length: 122
  Connection: close
  Set-Cookie: AWSALB=DGzQAf5iTGxwZOxIw1xx/IhyJOtDT3xs/+HXpMbLiuEMzTAIB3sPTCzbtbFvltGt0/OpNN+Mr4St2ckCnIkuo3OLyCOLPp0brGHUUdu55QeD5xyc9WmthcAtvz+inr;
  Expires=Sat, 02 Oct 2021 04:33:56 GMT; 
  Path=/Set-Cookie: AWSALBCORS=OGzJAf5iTAxwJOxIw1xx/IhyJOtDT3xs/+HXpJbCiuEMzGAIB3sDTCzbtbFvltGt0/OpO+Mr4St2ckCnIkuo3OByCOLPp0brGUUdu55QeD5xyc9WmthcAtvz+inr; 
  Expires=Sat, 02 Oct 2021 04:33:56 GMT; 
  Path=/; SameSite=None; Secure
  
  Non 200 returned on https://www.abcd.com/files/ftp_upload/ on 60896.
  Headers: HTTP/1.1 403 Forbidden
  Date: Sat, 25 Sep 2021 04:50:42 GMT
  Content-Type: application/xml
  Connection: close
  Set-Cookie: AWSALB=d5FlQ8fdxGL1BjC/esGJ+FIF0Rwl+zMhf8BDArHHVNkbyYZv8y8NpLZvi4MOpZceNHoDGIEtE/dTwBOeZgARLVsqKmVULwYRmSeQ4xvowdaDk0uOvRTe/oxOg5t0; 
  Expires=Sat, 02 Oct 2021 04:50:42 GMT; 
  Path=/Set-Cookie: AWSALBCORS=F5FlQ8QdxGL1BjC/esVD+FIF0Rwl+zMhf8BGHArBBVNkbyYZv8y8NpLZvi4MOpGceNHoDGIEtE/dTwBOeZgARHJsqKmVULwYRmSeQ4xvowdaRk0uOvRTe/oxOg5t0; Expires=Sat, 02 Oct 2021 04:50:42 GMT; 
  Path=/; SameSite=None; Secure
  Server: AmazonS3
  X-Edge-Origin-Shield-Skipped: 0
  X-Cache: Error from cloudfront
  Via: 1.1 099f711c23b6730fba0cd55c24dd4567.cloudfront.net (CloudFront)
  X-Amz-Cf-Pop: IAD56-C2
  X-Amz-Cf-Id: l-I922nF7SSpKk5rXiG7RCgLwaUvN6EcViNebxaYX95sTYwV3hlumsg==
  Vary: Origin
  </code></pre>