ALB access logs show a growing number of `460` status codes.
IntermediateTroubleshootingLoad balancers and reverse proxies
Answer
Likely causes → 460 means the client closed the connection before the ALB's idle timeout, usually because the client's own timeout is shorter than the time the backend takes. Typical: a mobile app or API gateway with a 10–30 s timeout calling a slow endpoint.
Diagnose →
-- Athena over ALB logs
SELECT request_url, count(*), avg(target_processing_time)
FROM alb_logs WHERE elb_status_code = 460
GROUP BY request_url ORDER BY 2 DESC LIMIT 20;
Fix → Speed up the endpoints involved, or make long operations asynchronous (202 + polling). Align client timeouts with the realistic processing time.
Prevent → Track 460 as a client-experienced error in dashboards, even though it is not a 5xx.
More on Load balancers and reverse proxies
nginx returns `502 Bad Gateway` and the error log says `connect() failed (111: Connection refused) while connecting to upstream`.Beginnernginx returns `504 Gateway Time-out` with `upstream timed out (110: Connection timed out) while reading response header from upstream`.BeginnerAn ALB target group shows all targets `unhealthy` with `Health checks failed with these codes: [404]`.BeginnerAn ALB returns sporadic `502`s, and access logs show `elb_status_code=502` with `target_status_code=-`. Load is low.Intermediatenginx logs `upstream prematurely closed connection while reading response header from upstream`.Intermediatenginx error log shows `no live upstreams while connecting to upstream` and every request gets 502.Intermediate