# CloudFront 503: Service Unavailable

> 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.

Canonical: https://scaplet.com/errors/cdn/cloudfront-503

Guide Error · CDN and hosting errors

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.

3 min

read

2

sources

Nov 1, 2026

updated

Scaplet Editorial Team

author

In one line

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.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fcloudfront-503%20(%22CloudFront%20503%3A%20Service%20Unavailable%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fcloudfront-503%20(%22CloudFront%20503%3A%20Service%20Unavailable%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fcloudfront-503%20(%22CloudFront%20503%3A%20Service%20Unavailable%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fcloudfront-503%20(%22CloudFront%20503%3A%20Service%20Unavailable%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

5,500 per second per prefix

S3 GET/HEAD rate

3,500 per second per prefix

S3 write rate

Rare; common in load tests

Edge-side cause

Request the origin directly

Origin test

_01_Causes from the CloudFront troubleshooting page

## The five documented causes

AWS describes a 503 as typically a performance issue on the origin server, and in rare cases CloudFront itself temporarily being unable to satisfy a request because of resource constraints at an edge location. Which of the five applies depends on what sits behind the distribution.

Cause

### 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

Cause

### Resource constraints at the edge location

Applies when

Rare. CloudFront cannot route to the next best edge location. Common when load testing

First check

Follow the load testing guidelines; contact AWS Support if it happens in production

Cause

### Origin configured with mutual TLS

Applies when

CloudFront repeatedly fails to connect, for example TLS handshakes failing or DNS and connectivity problems

First check

Client certificate attached and unexpired; origin reachable

Cause

### Lambda@Edge or CloudFront Function execution error

Applies when

A function returned an execution error

First check

Function test and debug tooling

Cause

### Lambda@Edge limit exceeded

Applies when

Concurrent executions or invocation frequency passed a Lambda quota in the Region, or the function exceeded its timeout quota

First check

Lambda@Edge quotas

Where each 503 is produced

```
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 -> 503
```

_02_Fix it on your stack

## Tell origin from edge in 2 minutes

Compare what the distribution says with what the origin says. A 503 from the origin means the problem is behind CloudFront. Check the response headers first: a CloudFront response carries `via` and `x-cache`, and `x-amz-cf-id` is a per-request identifier worth saving if you open a support case.

Public endpoint: the headers a CloudFront-served site returns
Public endpoint: the headers a CloudFront-served site returns

```
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>
```

Public endpoint: a plain 503 for comparison
Public endpoint: a plain 503 for comparison

```
curl -sS -o /dev/null -w "%{http_code}\n" https://httpbin.org/status/503 # expected output: 503
```

Reader's own infra: same path through CloudFront and straight to the origin
Reader's own infra: same path through CloudFront and straight to the origin

```
curl -sI https://dxxxxxxxxxxxx.cloudfront.net/path | grep -iE "^(HTTP|x-cache)" curl -sI https://origin.example.com/path | head -1
```

If 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.

_03_What AWS recommends for each origin

## Fix by origin type

Origin

### Amazon S3

Recommendation

The documented limits are 3,500 PUT, COPY, POST or DELETE and 5,500 GET or HEAD requests per second per partitioned prefix. A 503 Slow Down means too high a rate against one prefix, so spread objects across several prefixes

Origin

### Elastic Load Balancing

Recommendation

Make sure backend instances can answer health checks and that the load balancer and instances can handle the load

Origin

### Custom origin

Recommendation

Check application logs for memory, CPU and disk, and make sure an EC2 instance type has the resources for the request rate

Origin

### API Gateway

Recommendation

The backend integration got no response, being overloaded or under maintenance. Read the API Gateway logs for capacity or integration problems

Origin

### Origin with mTLS

Recommendation

Confirm the right client certificate is attached and not expired, allow propagation time after an update, confirm DNS resolves and the origin is reachable. The condition is temporary and traffic resumes once the origin is reachable

**Edge-side 503 is not a tuning problem**AWS says to contact Support if an edge capacity 503 happens in production, since nothing in your distribution settings controls it. If it only appears during load tests, change the test, not the distribution.

_04_Explained

## What a 503 does to crawling

Google says `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](/errors/cdn/cloudfront-404) for the error-caching behavior and how to verify it. For the neighboring status codes, see [502 on AWS](/errors/cdn/aws-502-bad-gateway) and [5xx server errors](/seo-issues/server-errors-5xx).

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- amazon.com
- google.com

1. 01 [Amazon CloudFront docs: HTTP 503 status code (Service Unavailable)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/http-503-service-unavailable.html) docs.aws.amazon.com · checked 2026-11-01
2. 02 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-11-01

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Is a CloudFront 503 my fault or AWS's?

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.

_02_ What is S3 503 Slow Down through CloudFront?

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.

_03_ Why do I get 503 when I load test CloudFront?

AWS says the edge resource constraint error is common during load testing and points to its load testing guidelines for avoiding capacity exceeded errors.

## Keep learning

[All errors](/errors)

[Learn CloudFront 400: Bad Request CDN and hosting errors](/errors/cdn/cloudfront-400) [Related 5xx server errors Status codes and links](/seo-issues/server-errors-5xx) [Read next AWS 502 Bad Gateway CDN and hosting errors](/errors/cdn/aws-502-bad-gateway) [Do Run a free site audit Free, about two minutes](/site-audit)

Other 503 errors
[503 Service Unavailable on Squarespace](/errors/http/503/squarespace) [ALB 503 Service Unavailable](/errors/cdn/alb-503) [Cloud Run 503 error](/errors/cdn/cloud-run-503) [Heroku 503 Service Unavailable](/errors/cdn/heroku-503) [503 Service Unavailable](/errors/http/503)

More Cloudfront errors
[CloudFront 400: Bad Request](/errors/cdn/cloudfront-400) [CloudFront 404 Not Found](/errors/cdn/cloudfront-404)

More in CDN and hosting errors
[AWS Amplify 404 Not Found](/errors/cdn/amplify-404) [AWS EC2: Connection timed out](/errors/cdn/aws-ec2-connection-timed-out) [AWS Lambda 502 Bad Gateway](/errors/cdn/aws-lambda-502) [AWS Lambda timeout](/errors/cdn/lambda-timeout) [Azure Front Door 502](/errors/cdn/azure-front-door-502) [Cloud Run 503 error](/errors/cdn/cloud-run-503) [Cloudflare 504 Gateway Timeout](/errors/cdn/cloudflare-504) [Cloudflare Pages 404 Not Found](/errors/cdn/cloudflare-pages-404) [Cloudflare too many redirects (ERR_TOO_MANY_REDIRECTS)](/errors/cdn/cloudflare-too-many-redirects) [Cloudflare verify you are human loop](/errors/cdn/cloudflare-verify-you-are-human-loop) [CloudFront 400: Bad Request](/errors/cdn/cloudfront-400) [CloudFront 404 Not Found](/errors/cdn/cloudfront-404) [CloudFront 503: Service Unavailable](/errors/cdn/cloudfront-503) [Firebase Hosting 404](/errors/cdn/firebase-hosting-404) [GitHub Pages 404 Not Found](/errors/cdn/github-pages-404) [Google Cloud 502 Bad Gateway](/errors/cdn/google-cloud-502) [Heroku 503 Service Unavailable](/errors/cdn/heroku-503) [Heroku H10: App crashed](/errors/cdn/heroku-h10-app-crashed) [Heroku H12: Request timeout](/errors/cdn/heroku-h12-request-timeout) [Heroku H13: Connection closed without response](/errors/cdn/heroku-h13) [Heroku H14: No web processes running](/errors/cdn/heroku-h14) [Netlify build failed](/errors/cdn/netlify-build-failed) [Netlify function timeout](/errors/cdn/netlify-function-timeout) [Render 502 Bad Gateway](/errors/cdn/render-502)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
