# Heroku 503 Service Unavailable

> A Heroku 503 is one of about 17 router codes, from H10 to H99. Read the code in the router log, then use this map to the right fix, or to a Heroku-side wait.

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

Guide Heroku Error · CDN and hosting errors

A Heroku 503 is one of about 17 router codes, from H10 to H99. Read the code in the router log, then use this map to the right fix, or to a Heroku-side wait.

5 min

read

4

sources

Oct 31, 2026

updated

Scaplet Editorial Team

author

In one line

Heroku's router returns 503 for many different failures, and each one logs an H code: H10 crashed app, H11 backlog, H12 timeout, H14 no web dynos, H19 and H21 connection problems, H80 maintenance mode, H82 dyno hours used up, H99 platform error. The browser page looks the same for all of them. Read `code=H..` in `heroku logs --dyno router`, then follow the map below.

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%2Fheroku-503%20(%22Heroku%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%2Fheroku-503%20(%22Heroku%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%2Fheroku-503%20(%22Heroku%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%2Fheroku-503%20(%22Heroku%20503%20Service%20Unavailable%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 6 parts, 5 minutes.

1. [A 503 is a symptom, the H code is the diagnosis 01](#a-503-is-a-symptom-the-h-code-is-the-diagnosis)
2. [Read the code in 2 minutes 02](#read-the-code-in-2-minutes)
3. [Capacity codes: H11, H22, H19, H21, H34 03](#capacity-codes-h11-h22-h19-h21-h34)
4. [Boot and start-up: H20 against R10 04](#boot-and-start-up-h20-against-r10)
5. [When it is not a fault: H80, H82, H83 and H99 05](#when-it-is-not-a-fault-h80-h82-h83-and-h99)
6. [What a Heroku 503 does to search 06](#what-a-heroku-503-does-to-search)

_01_Explained

## A 503 is a symptom, the H code is the diagnosis

Heroku's router answers on behalf of your app, so a 503 can mean the app crashed, is overloaded, is under maintenance, or that Heroku itself has a problem. The Heroku Error Codes article gives every one of these a code, and in its sample log lines the routing codes below all show `status=503`. The one that does not is H81 (Blank app), which logs `status=502`.

503-producing router codes in the Heroku docs
| Code | Meaning in Heroku's words | Who acts | Where to go |
| H10 | App crashed | You | [H10: App crashed](/errors/cdn/heroku-h10-app-crashed) |
| H12 | Request timeout | You | [H12: Request timeout](/errors/cdn/heroku-h12-request-timeout) |
| H13 | Connection closed without response | You | [H13](/errors/cdn/heroku-h13) |
| H14 | No web processes running | You | [H14](/errors/cdn/heroku-h14) |
| H11, H22 | Backlog too deep, connection limit reached | You (capacity) | Capacity section below |
| H19, H21, H34 | Backend connection timeout, refused, all up dynos quarantined | You (usually load) | Capacity section below |
| H20 | App boot timeout | You | Boot section below |
| H15, H17, H18 | Idle connection, poorly formatted response, server request interrupted | You | Heroku error codes article |
| H80, H82, H83 | Maintenance mode, dyno hour pool used up, planned service degradation | You, you, Heroku | Not-a-fault section below |
| H99 | Platform error | Heroku | Try again in a minute, check the status site |

_02_Fix it on your stack

## Read the code in 2 minutes

The commands need the Heroku CLI and your app. The log filter was run on sample router lines copied from Heroku's error-code article, so it shows the output shape you should expect.

Your app: stream router log lines and keep only the code (needs the Heroku CLI)
Your app: stream router log lines and keep only the code (needs the Heroku CLI)

```
heroku logs --dyno router --tail \ | grep --line-buffered -o 'code=H[0-9]* desc="[^"]*"'
```

Observed on four sample lines, with the count command: grep -o ... | sort | uniq -c | sort -rn
Observed on four sample lines, with the count command: grep -o ... | sort | uniq -c | sort -rn

```
2 code=H12 desc="Request timeout" 1 code=H80 desc="Maintenance mode" 1 code=H10 desc="App crashed"
```

Public test endpoint: confirm your client reports a 503
Public test endpoint: confirm your client reports a 503

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

If one code dominates, go straight to its row above. If several appear, start with the one that shows up first in the log, since later codes can be a consequence.

_03_Timers and retries behind the connection codes

## Capacity codes: H11, H22, H19, H21, H34

These five all describe an app that cannot keep up, and the documented fix is the same shape: more throughput. Heroku says the H11 backlog threshold varies with the number of dynos, request time and normal request volume, and that the solution is adding dynos, tuning the database (for example, adding an index), or making the code faster. The connection codes have fixed timers worth knowing.

Behavior

### H19

What the docs say

The router gets a connection timeout after 5 seconds of trying to open a socket to a web dyno

Behavior

### H21

What the docs say

The router gets a connection refused error when opening a socket to the web process

Behavior

### Common Runtime retry

What the docs say

The router retries multiple dynos before logging H19 or H21. Private Space routers cannot reroute to another web dyno

Behavior

### H34 quarantine

What the docs say

After a failed connection the router quarantines that dyno for 5 seconds, tries up to 10 attempts, and has a 75 second total window before it logs H34

Behavior

### One web dyno only

What the docs say

A single dyno can see H19 when its runtime instance fails and is replaced. Running more than one web dyno mitigates it

**Run more than one web dyno**Heroku's own advice for the single-dyno H19 case is to run more than one web dyno. It removes one documented outage mode.

H22 reports an elevated number of HTTP client connections reaching the app, which Heroku reads as heavy load with slow responses.

_04_Which boot clock fired

## Boot and start-up: H20 against R10

A new or restarted web dyno gets two different clocks. Heroku's router enqueues requests for 75 seconds while it waits for starting processes to reach `up`, and logs H20 if none do. R10 is narrower: the web process must bind to its assigned `$PORT` within 60 seconds, or the dyno is killed and counts as crashed.

Signal

### H20 App boot timeout

Limit

75 seconds

What it covers

Platform work as well: internal state propagation, [slug](/glossary/url-slug) download, unpacking and container preparation, plus your start-up

Signal

### R10 Boot timeout

Limit

60 seconds

What it covers

Only your application's start-up tasks. Java buildpack, Gradle buildpack, heroku-deploy toolbelt plugin and Heroku Maven plugin apps get 90 seconds

Heroku's documented causes are an app that cannot reach an external resource such as a database at start-up, an app doing too much work at start-up, and the Rails asset pipeline running at boot instead of at `git push`. The boot timeout tool can raise the limit for Cedar apps but is not available for Fir, and Heroku calls it a temporary solution because slow boots slow deploys and recovery. The [H10 page](/errors/cdn/heroku-h10-app-crashed) covers the `$PORT` binding itself.

_05_Your call

## When it is not a fault: H80, H82, H83 and H99

Four codes need a decision or patience rather than a debugging session. Heroku itself says H80 is not an error and gives it a code for completeness.

If this fits

### You can act on

- H80: maintenance mode is on. Run `heroku maintenance` to check it and `heroku maintenance:off` to end it
- H82: the account used up its monthly Eco dyno hours and apps on those dynos are sleeping. Usage is in the Heroku dashboard

Or

### Wait for Heroku on

- H99: an internal Heroku platform error that needs no action from you. Try again in a minute or check the status site
- H83: planned service degradation while Heroku retires a feature. The Heroku Changelog and status page carry the timeline

Maintenance mode commands from the Heroku Dev Center (needs the Heroku CLI)

```
heroku maintenance:on heroku maintenance heroku maintenance:off
```

**Maintenance mode keeps billing and keeps dynos running**The Dev Center says dynos keep accruing billing hours in maintenance mode, web dynos keep running while the routers block requests, and maintenance mode is not yet available for Fir-generation apps. In Private Spaces, do not scale to `web=0` while in maintenance mode, because the routing proxy lives on the web dynos' compute instances and you get response errors instead of the maintenance page.

_06_Good to know

## What a Heroku 503 does to search

A crawler sees a plain 503 whichever H code produced it. Google says 5xx and 429 responses prompt its crawlers to slow down, and that indexed URLs are kept but eventually dropped if the errors persist. That makes H80 a deliberate choice worth keeping short, and makes the accidental ones, such as H82 on a sleeping Eco app, worth catching. See [5xx server errors](/seo-issues/server-errors-5xx).

A 503 you did not plan

Scaplet's free audit at [/site-audit](/site-audit) reads status codes across a site, so a Heroku app that quietly returns 503 to everything shows up as an error on every page instead of a traffic dip you have to explain.

Questions

## Asked a lot.

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

_01_ Why does Heroku show Application Error with a 503?

The router could not get a valid answer from your web dyno, and each cause logs an H code such as H10, H12 or H14. Run `heroku logs --dyno router` and read the `code=` value, because the page shown to visitors is the same for all of them.

_02_ Is H80 an error?

No. Heroku's error-code article says H80 is not an error and gives it a code for completeness. It means maintenance mode is on, and the router logs `at=info` with `status=503`.

_03_ What does H99 mean and what do I do?

H99 is a Heroku platform error. The docs say it is one of only two codes, with R99, that represent errors in the platform, and that it needs no action from you. Try again in a minute or check the Heroku status site.

Sources · 4

## Every fact, linked and dated.

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

- heroku.com
- google.com

1. 01 [Heroku Dev Center: Heroku Error Codes](https://devcenter.heroku.com/articles/error-codes) devcenter.heroku.com · checked 2026-11-01
2. 02 [Heroku Dev Center: Maintenance Mode](https://devcenter.heroku.com/articles/maintenance-mode) devcenter.heroku.com · checked 2026-11-01
3. 03 [Heroku Dev Center: HTTP Routing](https://devcenter.heroku.com/articles/http-routing) devcenter.heroku.com · checked 2026-11-01
4. 04 [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 Heroku H10: App crashed CDN and hosting errors](/errors/cdn/heroku-h10-app-crashed) [Related 5xx server errors Status codes and links](/seo-issues/server-errors-5xx) [Read next Heroku H12: Request timeout CDN and hosting errors](/errors/cdn/heroku-h12-request-timeout) [Do Run a free site audit Free, about two minutes](/site-audit)

Other 503 errors
[ALB 503 Service Unavailable](/errors/cdn/alb-503) [Cloud Run 503 error](/errors/cdn/cloud-run-503) [CloudFront 503: Service Unavailable](/errors/cdn/cloudfront-503) [503 Service Unavailable](/errors/http/503) [503 Service Unavailable in Apache](/errors/http/503/apache)

More Heroku errors
[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)

More in CDN and hosting errors
[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) [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)

Terms on this page
[URL slug](/glossary/url-slug)

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
