ELB 5xx Errors

HTTP 502, 503, 504 from ALB — distinguishing LB errors from backend errors and diagnosing each.

Overview

Overview

When an ALB returns 5xx errors, the cause is either the ALB itself (502, 503) or the backend targets (504, or a 502 when the backend sends an invalid response). Knowing what each code means tells you where to look.

Key concepts

  • HTTP 502 (Bad Gateway)
  • HTTP 503 (Service Unavailable)
  • HTTP 504 (Gateway Timeout)
  • ALB access logs
  • Target health check

Interview questions

  • Users are seeing 502 errors from your ALB. How do you find the root cause?

Sign up free to read the full topic

More Troubleshooting topics

Start free on Cariara · Coding problems · System design studio