Origin lacks capacity for the request rate
- Applies when
- Any origin: S3, a load balancer, a custom origin or API Gateway
- First check
- Origin logs, health checks, instance resources
Work out whether a CloudFront 503 comes from your origin, the edge, an mTLS origin or Lambda@Edge. Fixes for S3, load balancers and custom origins.
A CloudFront 503 usually means the origin could not serve the request, and CloudFront relayed the error. AWS lists five causes: origin capacity, rare edge resource constraints (common in load tests), an origin using mutual TLS, a Lambda@Edge or CloudFront Function execution error, and a Lambda@Edge limit being exceeded. Request your origin directly to see which side is failing.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
viewer --> edge location --> [Lambda@Edge / CloudFront Function] --> origin
| | |
| |-- execution error / quota ---> 503 |-- no capacity -------> 503
|-- no resources left at the edge (rare) --------> 503 |-- mTLS connect fails -> 503via and x-cache, and x-amz-cf-id is a per-request identifier worth saving if you open a support case.curl -sI https://aws.amazon.com | grep -iE "^(HTTP|via|x-cache|x-amz-cf-id)"
# observed: HTTP/2 200, x-cache: Miss from cloudfront, via: 1.1 <id>.cloudfront.net (CloudFront), x-amz-cf-id: <id>curl -sS -o /dev/null -w "%{http_code}\n" https://httpbin.org/status/503
# expected output: 503curl -sI https://dxxxxxxxxxxxx.cloudfront.net/path | grep -iE "^(HTTP|x-cache)"
curl -sI https://origin.example.com/path | head -1If the origin answers 200 while the distribution answers 503, suspect a function, mTLS or the edge. If both fail, the origin is the problem. For a deliberate load test, AWS points to its load testing guidelines for avoiding 503 capacity exceeded errors instead of hammering a production distribution.
5xx and 429 responses prompt its crawlers to temporarily slow down, and indexed URLs that keep returning them are preserved but eventually dropped. Because CloudFront can cache error responses, a 503 can outlast the fault; see CloudFront 404 for the error-caching behavior and how to verify it. For the neighboring status codes, see 502 on AWS and 5xx server errors.3 questions people ask next, answered from the sources on this page.
Usually the origin's. AWS describes it as typically a performance issue on the origin server, with CloudFront resource constraints at an edge as a rare exception that you cannot tune away.
S3 returns it when the request rate on one prefix is too high. AWS cites 3,500 write requests or 5,500 read requests per second per partitioned prefix and advises distributing objects across several prefixes.
AWS says the edge resource constraint error is common during load testing and points to its load testing guidelines for avoiding capacity exceeded errors.
Run the free audit, then approve the fixes. Every change can be undone.