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

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

Guide AWS Error · CDN and hosting errors

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Falb-503%20(%22ALB%20503%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%2Falb-503%20(%22ALB%20503%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%2Falb-503%20(%22ALB%20503%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%2Falb-503%20(%22ALB%20503%20Service%20Unavailable%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 5 parts, 4 minutes.

1. [A 503 from an ALB means there was nobody to ask 01](#a-503-from-an-alb-means-there-was-nobody-to-ask)
2. [Check it in 2 minutes 02](#check-it-in-2-minutes)
3. [Fix by reason code 03](#fix-by-reason-code)
4. [Alarm on the metric that still exists 04](#alarm-on-the-metric-that-still-exists)
5. [What an ALB 503 means for SEO 05](#what-an-alb-503-means-for-seo)

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

**A fixed-response rule can also say 503**A listener rule with a `fixed-response` action drops the request and returns the [status code](/glossary/http-status-codes) you configured; AWS documents that it can be a 2XX, 4XX or 5XX code. If a rule is set to 503 on purpose, no target group is involved, and the `elb_status_code` is the only place that shows 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)
```

_02_Fix 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
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)
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)
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
| State | Does it cause a 503? | What it is |
| `unused` | Yes, if it is every target | Not registered, group not used by a listener rule, target in a disabled Availability Zone, or target stopped or terminated |
| `unhealthy` | No, the ALB fails open | Failed health checks. With every target unhealthy in all enabled zones, requests go to all of them anyway |
| `initial` | Not by itself | Registration or the first health checks in progress |
| `draining` | Not by itself | Deregistering with connection draining under way |
| `unavailable` | Not by itself | Health checks are disabled for the target group |

_03_`unused` reason codes

## Fix by reason code

AWS documents the reason codes that go with `unused`. Each one has a different owner, so reading the code saves a round of guessing.

Reason code

### `Target.NotRegistered`

Meaning in the AWS docs

Target is not registered to the target group

Fix

Register it with the command below

Reason code

### `Target.NotInUse`

Meaning in the AWS docs

The target group is not configured to receive traffic from the load balancer, or the target is in an Availability Zone that is not enabled

Fix

Point a listener rule at the target group, or enable the target's zone on the load balancer

Reason code

### `Target.InvalidState`

Meaning in the AWS docs

Target is in the stopped or terminated state, or another invalid state

Fix

Start or replace the instance. With Auto Scaling, check why capacity is zero

Reason code

### `Target.IpUnusable`

Meaning in the AWS docs

The IP address cannot be used as a target because a load balancer is using it

Fix

Register a different IP address

Register instances (from the AWS docs; needs your account)

```
aws elbv2 register-targets \ --target-group-arn <target-group-arn> \ --targets Id=i-1234567890abcdef0 Id=i-0abcdef1234567890
```

When the port is not given, the ALB uses the target group's port. AWS says a newly registered target must pass one health check to be considered healthy, so expect `initial` for a short while.

_04_Metrics, 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

_05_Explained

## 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](/errors/cdn/alb-504-gateway-timeout) and [5xx server errors](/seo-issues/server-errors-5xx).

Questions

## Asked a lot.

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

_01_ Why 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`.

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

_03_ Can 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. 01 [AWS: Troubleshoot your Application Load Balancers](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-troubleshooting.html) docs.aws.amazon.com · checked 2026-11-01
2. 02 [AWS: Health checks for Application Load Balancer target groups](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html) docs.aws.amazon.com · checked 2026-11-01
3. 03 [AWS: Register targets with your target group](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-register-targets.html) docs.aws.amazon.com · checked 2026-11-01
4. 04 [AWS: Action types for listener rules](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/rule-action-types.html) docs.aws.amazon.com · checked 2026-11-01
5. 05 [AWS: CloudWatch metrics for your Application Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-cloudwatch-metrics.html) docs.aws.amazon.com · checked 2026-11-01
6. 06 [AWS CLI reference: describe-target-health](https://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-target-health.html) docs.aws.amazon.com · checked 2026-11-01
7. 07 [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

## Keep learning

[All errors](/errors)

[Learn ALB 504 Gateway Timeout CDN and hosting errors](/errors/cdn/alb-504-gateway-timeout) [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 in nginx](/errors/http/503/nginx) [503 Service Unavailable in WordPress](/errors/http/503/wordpress) [503 Service Unavailable on Squarespace](/errors/http/503/squarespace) [Cloud Run 503 error](/errors/cdn/cloud-run-503) [CloudFront 503: Service Unavailable](/errors/cdn/cloudfront-503)

More AWS errors
[ALB 504 Gateway Timeout](/errors/cdn/alb-504-gateway-timeout)

Nearby in errors
[Your connection is not private in Chrome (on every site)](/errors/browser/your-connection-is-not-private-chrome)

More in CDN and hosting errors
[Netlify build failed](/errors/cdn/netlify-build-failed) [Netlify function timeout](/errors/cdn/netlify-function-timeout) [Render 502 Bad Gateway](/errors/cdn/render-502) [S3 Access Denied (403 Forbidden)](/errors/cdn/s3-access-denied) [Vercel 413: FUNCTION_PAYLOAD_TOO_LARGE](/errors/cdn/vercel-payload-too-large) [Vercel 429: Too Many Requests](/errors/cdn/vercel-429) [Vercel 500: Internal Server Error](/errors/cdn/vercel-500) [Vercel build failed](/errors/cdn/vercel-build-failed) [Vercel domain not working](/errors/cdn/vercel-domain-not-working) [Vercel FUNCTION_INVOCATION_TIMEOUT](/errors/cdn/vercel-function-invocation-timeout) [Vercel: too many redirects](/errors/cdn/vercel-too-many-redirects) [Akamai reference number](/errors/cdn/akamai-reference-number) [ALB 503 Service Unavailable](/errors/cdn/alb-503) [ALB 504 Gateway Timeout](/errors/cdn/alb-504-gateway-timeout) [API Gateway 403 Forbidden](/errors/cdn/api-gateway-403-forbidden) [API Gateway 504 Gateway Timeout](/errors/cdn/api-gateway-504) [AWS 502 Bad Gateway](/errors/cdn/aws-502-bad-gateway) [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)

Terms on this page
[HTTP status codes](/glossary/http-status-codes)

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
