460 Client Closed Connection (AWS ALB)
Client error response defined by docs.aws.amazon.com.
Written and maintained by Ben Ennis
Last reviewed November 9, 2026 · How we verify this
Common causes at a glance
- A client timeout shorter than the target's response time
- Users closing a tab or app during a slow request
- SDK or proxy deadlines below the ALB idle timeout
- Retry policies that cancel and reissue slow calls
Reproduce it
curl --max-time 2 https://app.example.com/slow-exportWhat 460 Client Closed Connection (AWS ALB) means
460 is the ALB’s version of nginx’s 499. A client sent a
request, the load balancer forwarded it, and the client hung up while it waited. The ALB
records 460 as the elb_status_code in the
access log so the request isn’t lost from the record.
Read it as a latency signal measured by your callers. The target may have finished the
work after the client left. CloudWatch’s
HTTPCode_ELB_4XX_Count counts 460 with the other load-balancer 4xx
codes, and AWS notes that 460 is the one case where the request may have reached the
target. A 4xx alarm on that metric can therefore fire because your backend is slow.
There is no RFC
AWS defines 460 in its ALB troubleshooting guide: the client
closed the connection before the idle timeout period elapsed. The idle timeout is the
idle_timeout.timeout_seconds attribute, 60 seconds by default and
configurable from 1 to 4,000. AWS’s advice is to compare the client’s timeout with that
value and make sure the target responds before the client gives up.
What actually causes it
Compare the route’s normal latency with the deadlines your clients use. If the slowest requests on a route take 8 seconds and a calling service gives up at 5, every slow request becomes a 460. If 460s appear on every route at a low, steady rate, mobile users on bad connections are the usual source. A sudden jump right after a deploy usually means the new build got slower, not that clients changed.
How to debug it
Pull the 460 lines and group them by URL. The ELB status code is the ninth space-separated field in the access log and the request URL is the fourteenth:
zcat *.log.gz | awk '$9 == 460 {print $14}' | sort | uniq -c | sort -rn | head -20
The routes at the top are where clients run out of patience. Measure their latency directly with curl before changing timeouts.
Then fix the side that’s wrong: speed up the route, move long work to an async job, or agree on a longer client deadline.
Working examples
curl
# Reproduce: a client deadline shorter than the endpoint's latency.
curl --max-time 2 https://app.example.com/slow-export ; echo "exit=$?"
# exit=28 on the client; the ALB access log shows elb_status_code 460.
# Check the load balancer's idle timeout.
aws elbv2 describe-load-balancer-attributes --load-balancer-arn "$ALB_ARN" \
--query "Attributes[?Key=='idle_timeout.timeout_seconds']"
Python (requests)
import requests
url = "https://app.example.com/slow-export"
try:
# A 2-second read timeout closes the socket; the ALB logs 460.
requests.get(url, timeout=(3, 2))
except requests.exceptions.ReadTimeout:
print("client gave up; ALB logs 460")
Node (fetch)
const url = "https://app.example.com/slow-export";
try {
await fetch(url, { signal: AbortSignal.timeout(2000) });
} catch (err) {
if (err.name === "TimeoutError") console.log("aborted; ALB logs 460");
else throw err;
}Reference and tooling
The authoritative list of assigned status codes is theIANA HTTP Status Code Registry. For a searchable copy with the semantics summarised, use theHTTP status code reference on this site. To see exactly what a server is sending, theheader inspector shows the raw status line and response headers, and thecurl builder assembles the request flags for you.
Related reading
- Every HTTP status code, and when it shows up
The wider map: which codes you actually meet in production, and the pairs everyone confuses.
Other 4xx codes
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Content Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 (Unused)
- 419 Page Expired
- 421 Misdirected Request
- 422 Unprocessable Content
- 423 Locked
- 424 Failed Dependency
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 430 Shopify Security Rejection
- 431 Request Header Fields Too Large
- 440 Login Time-out (Microsoft)
- 444 No Response
- 449 Retry With (Exchange ActiveSync)
- 451 Unavailable For Legal Reasons
- 463 Too Many Forwarded IPs (AWS ALB)
- 464 Incompatible Protocol Version (ALB)
- 494 Request Header Too Large
- 495 SSL Certificate Error
- 496 SSL Certificate Required
- 497 HTTP Request Sent to HTTPS Port
- 498 Invalid Token (Esri ArcGIS)
- 499 Client Closed Request