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
- Database Migrations in Production
- Deployment Rollback Strategies
- Disk IOPS Saturation
- DNS Failures
- EC2 Instance Unresponsive
- ECS Task Failures and Restarts
- Flaky CI/CD Pipeline Failures
- HPA Not Scaling
- IAM Permission Denied Errors
- JVM Garbage Collection Pauses
- Kubernetes Service Not Reachable
- Lambda Cold Start Latency
Start free on Cariara · Coding problems · System design studio