Free auditStart free
GuideError · CDN and hosting errors

ALB 503 Service Unavailable

An ALB 503 means a target group has no registered targets or only unused ones. Read the reason code, fix registration, and alarm on the right metric.

4 min
read
7
sources
Oct 30, 2026
updated
Scaplet Editorial Team
author
In one line

An Application Load Balancer sends 503 when it has nothing to forward to: the target group has no registered targets, or every registered target is in the unused state. Unhealthy targets do not cause this, because the ALB fails open. Run describe-target-health, read the reason code (Target.NotRegistered, Target.NotInUse, Target.InvalidState), and fix registration, listener rules or the instance state.

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
01Check it

A 503 from an ALB means there was nobody to ask

The 502 and 504 families on an ALB describe a conversation that went wrong with a target. A 503 describes the opposite: the load balancer never had a target to talk to. AWS's troubleshooting guide lists two causes. The target groups for the load balancer have no registered targets, or all registered targets are in an unused state. The second cause applies only when a target group has the target optimizer enabled: a request is rejected because no targets were ready to receive it.
Where the 503 is decided
listener -> rule (conditions match) -> action: forward -> target group
                                                            |
                          no registered targets  --------> 503
                          every target "unused"  --------> 503
                          some targets healthy   --------> forwarded
                          all targets unhealthy  --------> forwarded anyway (fail open)
02Fix it on your stack

Check it in 2 minutes

Run the first command anywhere to see how a 503 reads in a terminal. The rest need your AWS account and a target group ARN, so they are marked.
Public test endpoint: read a 503 status
curl -sS -o /dev/null -w "%{http_code}\n" https://httpbin.org/status/503
# observed: 503
Your account: list each target's state and reason (needs AWS CLI credentials)
aws elbv2 describe-target-health \
  --target-group-arn <target-group-arn> \
  | jq -r '.TargetHealthDescriptions[] | [.Target.Id, .TargetHealth.State, (.TargetHealth.Reason // "-")] | @tsv'
Expected output shape for the jq line (one row per target)
i-ceddcd4d    unused    Target.NotInUse

An empty result, with no rows at all, means the target group has no registered targets. I checked the jq expression against a response that follows the shape in the AWS CLI reference, and the aws elbv2 calls come from the AWS docs and were not run against an account.

Which state means what
StateDoes it cause a 503?What it is
unusedYes, if it is every targetNot registered, group not used by a listener rule, target in a disabled Availability Zone, or target stopped or terminated
unhealthyNo, the ALB fails openFailed health checks. With every target unhealthy in all enabled zones, requests go to all of them anyway
initialNot by itselfRegistration or the first health checks in progress
drainingNot by itselfDeregistering with connection draining under way
unavailableNot by itselfHealth checks are disabled for the target group
04Metrics, as AWS documents them

Alarm on the metric that still exists

A common alarm design watches HealthyHostCount and fires at zero. AWS documents that metric as reported only if there are registered targets, so a target group with nothing registered reports no data rather than zero. An alarm that treats missing data as OK stays silent through the exact failure this page is about.
Metric

HTTPCode_ELB_503_Count

Reported when
There is a nonzero value
Use it for
The direct signal that the load balancer itself generated 503s. Use the Sum statistic
Metric

HealthyHostCount

Reported when
There are registered targets
Use it for
Capacity when targets exist. Silent on an empty group
Metric

UnHealthyHostCount

Reported when
There are registered targets
Use it for
Targets failing health checks. Deregistering a target lowers HealthyHostCount without raising this
Alarm on 503 count when
  • You want to catch empty target groups and rule mistakes
  • A zero target group is a possible state, such as after a deploy
  • You need one alarm per load balancer, not per target group
Alarm on host counts when
  • You scale targets automatically and care about spare capacity
  • You already know targets are always registered
  • You alarm per target group and have another alarm for empty groups
05Explained

What an ALB 503 means for SEO

Google handles 503 as a signal to slow crawling. Its documentation says 5xx and 429 responses make its crawlers temporarily slow down, and indexed URLs are kept but eventually dropped if the errors persist. A listener that points at an empty target group returns 503 for every URL on that host, so check it right after any deploy that replaces target groups. Related reading: timeout errors on an ALB and 5xx server errors.
Questions

Asked a lot.

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

01Why does my ALB return 503 when targets are unhealthy?

It normally does not. AWS says that when every target in a group is unhealthy in all enabled Availability Zones, the load balancer fails open and routes to all of them. A 503 points to no registered targets or only unused targets, so check the state with describe-target-health.

02What does a target in the unused state mean?

AWS lists four situations: the target is not registered, the target group is not used in a listener rule, the target sits in an Availability Zone that is not enabled, or the target is stopped or terminated. The reason code on the target tells you which.

03Can I make an ALB return 503 for maintenance?

Yes. A listener rule with a fixed-response action returns a custom response with a 2XX, 4XX or 5XX status code and an optional message. The AWS documentation example shows status code, content type and message body fields, so add Retry-After at another layer if you need it.

Sources · 7

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • amazon.com
  • google.com
  1. 01AWS: Troubleshoot your Application Load Balancersdocs.aws.amazon.com · checked 2026-11-01
  2. 02AWS: Health checks for Application Load Balancer target groupsdocs.aws.amazon.com · checked 2026-11-01
  3. 03AWS: Register targets with your target groupdocs.aws.amazon.com · checked 2026-11-01
  4. 04AWS: Action types for listener rulesdocs.aws.amazon.com · checked 2026-11-01
  5. 05AWS: CloudWatch metrics for your Application Load Balancerdocs.aws.amazon.com · checked 2026-11-01
  6. 06AWS CLI reference: describe-target-healthdocs.aws.amazon.com · checked 2026-11-01
  7. 07How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
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