Free auditStart free
GuideError · CDN and hosting errors

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.

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 withChatGPTClaudePerplexityGoogleAI Mode

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
01Causes 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
02Fix 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
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
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
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.

04Explained

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 for the error-caching behavior and how to verify it. For the neighboring status codes, see 502 on AWS and 5xx server errors.
Sources · 2

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • amazon.com
  • google.com
  1. 01Amazon CloudFront docs: HTTP 503 status code (Service Unavailable)docs.aws.amazon.com · checked 2026-11-01
  2. 02How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
Questions

Asked a lot.

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

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

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

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

Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane