503 Service Unavailable: what it means and how to fix it

A 503 Service Unavailable error means the server received the request but can’t handle it right now. The usual reasons are overload or maintenance. The error is temporary by design, and most 503s clear within minutes to hours. If you run the site, find out which layer sent the error before you change anything, because the fix for a stuck WordPress file is different from the fix for a Cloudflare edge fault.

This guide covers the official definition and how to tell whether a third-party service, a CDN, a load balancer or your own server sent the error. It also covers the six root causes behind nearly every 503 on a CMS site, fixes for WordPress, nginx, Apache, IIS, Cloudflare and hosted platforms, and how long Google tolerates a 503.

In short

  • A 503 is a server-side status (RFC 9110, Section 15.6.4). Resetting your router almost never fixes it.
  • Read the response headers first. They tell you whether WordPress, nginx, IIS, a load balancer or Cloudflare answered.
  • nginx’s own rate limiter returns 503 by default, so limits that are too tight look like an outage.
  • Google slows crawling when it encounters 503s and other server errors. Several days on the same URL can get that URL dropped from the index.
  • Never cache a 503 at the CDN or page-cache layer, or visitors keep seeing the error after you fix it.

Fact-checked

We checked these key facts against the sources named, on November 26, 2026:

  • A 503 is a server-side status (RFC 9110, Section 15.6.4) (source: developer.mozilla.org)
  • RFC 9110, HTTP Semantics, defines the 503 status in Section 15.6.4 (source: developer.mozilla.org)
  • Cloudflare notes that some 503s appear only in analytics because of unsuccessful Speed Brain prefetches (source: developers.cloudflare.com)
  • A 2013 proposal on the nginx issue tracker (ticket 309) to switch the default to 429 wasn’t adopted, for backward compatibility (source: trac.nginx.org)
  • Google says a couple of hours to 1 or 2 days of 503 only slows crawling, and Gary Illyes has called occasional 10 to 15 minute 503s fine (source: searchenginejournal.com)

Where to start in this guide

Go to the section for your role. Each one opens with a short answer you can act on.

You are Start with Then read
A visitor who hit a 503 If you’re a visitor: what you can do Microsoft 365, Amazon and Apple notes
A WordPress or WooCommerce owner Fix a 503 in WordPress and WooCommerce 503 and SEO: how long is safe?
A server admin (nginx, Apache, IIS) Fix a 503 on nginx, Apache and IIS 503 from load balancers and API gateways
Behind a CDN or on a hosted platform 503s from Cloudflare and other CDNs Shopify, website builders and headless CMS
Responsible for SEO or planned maintenance 503 and SEO: how long is safe? How to serve a correct 503 maintenance page

What 503 Service Unavailable means

What 503 Service Unavailable means
Illustration

A 503 says the server is running but temporarily unable to handle the request. The usual reasons are overload or scheduled maintenance. Unlike a 404, it doesn’t mean the page is gone. It means “try again later.”

That difference matters. A 503 tells browsers, API clients and search engine crawlers that the problem is short-term and that they should come back. A 404 HTTP code says the server found nothing at that URL, possibly only for now, while a 410 says the content is permanently gone, and clients act on each of these very differently.

The official definition (RFC 9110)

RFC 9110, HTTP Semantics, defines the 503 status in Section 15.6.4. The IETF published it in June 2022, and it applies to HTTP/1.1, HTTP/2 and HTTP/3 alike. The RFC describes a server that can’t handle the request right now because of a temporary overload or scheduled maintenance, and that expects the condition to clear after some delay.

Two details in the spec are useful in practice:

  1. The server may send a Retry-After header to say how long the outage should last. The value can be a number of seconds or an HTTP-date.
  2. A server doesn’t have to send a 503 when it is overloaded. Some simply refuse the connection, which is why an overloaded site sometimes times out instead of showing an error page.

MDN Web Docs, in its 503 reference page, adds two practical rules. If you are throttling specific clients, the right response is 429 Too Many Requests, not 503. And 503 responses usually shouldn’t be cached, or clients can keep getting stale error pages after the fix.

Common wording variants

The same status shows up under many labels, and the wording often tells you which software produced it.

Message you see Usually produced by
503 Service Unavailable nginx, Apache, most app servers
503 Service Temporarily Unavailable Apache (common default wording), ingress-nginx, AWS ALB, many hosts
HTTP Error 503. The service is unavailable. Microsoft IIS (HTTP.sys)
Briefly unavailable for scheduled maintenance. Check back in a minute. WordPress maintenance mode
no healthy upstream Envoy, Istio and other Envoy-based gateways
Error 503 with a Cloudflare-branded page and Ray ID Cloudflare edge
503 SERVICE UNAVAILABLE in a web app (OneDrive, Outlook) The SaaS provider’s back end

Quick answer: will a 503 fix itself?

Usually, yes. Traffic spikes and planned maintenance end on their own, often within minutes. A 503 caused by a stuck maintenance file, a crashed app pool or a misconfigured rate limiter will not clear until someone fixes it.

How 503 compares with 500, 502, 504 and 429

The 5xx codes look alike but point to different layers. Matching the code to the right layer keeps you from fixing the wrong thing.

Code Meaning Who’s usually at fault Temporary? Typical fix
500 Internal Server Error The app crashed or hit an unhandled error Application code, plugin, config Not by design Read the error log, fix the code
502 Bad Gateway A proxy got an invalid response from upstream Upstream app or PHP-FPM is down or crashing Often Restart or fix the upstream service
503 Service Unavailable Server is temporarily unable to handle requests Overload, maintenance, rate limiter, stopped app pool, no healthy backend Yes, by design Remove the overload or end maintenance
504 Gateway Timeout A proxy waited too long for upstream Slow queries, slow external APIs, long PHP runs Often Speed up the upstream or raise timeouts carefully
429 Too Many Requests This specific client sent too many requests The client (bot, script, user) Yes Slow down, respect Retry-After

If your logs show 502s rather than 503s, the troubleshooting path is different. A 502 Bad Gateway usually means the upstream answered badly, and a 504 Gateway Time-out means it didn’t answer in time.

Who is actually returning the 503?

HTTP 5xx Error Code Comparison Table

Find the layer that generated the error before you fix anything. A request passes through up to five layers: the visitor’s network (rarely the cause), a third-party service, a CDN or load balancer, the web server, and the application itself. Each layer leaves different evidence and needs a different fix.

A 60-second triage

  1. Is it one site or many? If several unrelated sites fail, the problem is your network or a shared provider. If only one site fails, the problem is on that site’s side.
  2. Is it a big service? 503s from Microsoft 365, Amazon or Apple are almost always on the provider’s side. Check their status page.
  3. Is the error page branded? A Cloudflare page with a Ray ID is a different case from a plain white “Service Unavailable” page.
  4. What do the headers say? Run curl -I and read them.

Reading the error page and headers

Your terminal shows you more than the browser does:

curl -I https://example.com/

A WordPress site stuck in maintenance mode returns something like this:

HTTP/2 503
server: nginx
retry-after: 600
content-type: text/html; charset=utf-8

What to look for:

  • Retry-After: often points to deliberate maintenance (WordPress .maintenance, a maintenance plugin or a host’s maintenance switch).
  • cf-ray: the response passed through Cloudflare. It doesn’t prove Cloudflare made the error.
  • server: names the layer that answered. Common values are nginx, Apache, Microsoft-HTTPAPI/2.0 (HTTP.sys, often a stopped IIS app pool), awselb/2.0 (an AWS load balancer), envoy or cloudflare.
  • x-apigee-fault-source / x-apigee-fault-code: an Apigee API proxy raised or relayed the fault (see the load balancer section).
  • No response at all: the server refused the connection. That points to a crashed service or firewall rather than a 503 page.

Checking a service’s status page

Large providers publish live incident status. Cloudflare posts at cloudflarestatus.com, Shopify at status.shopify.com, and AWS on its Health Dashboard. Microsoft shows tenant-level health on the Service health page in the Microsoft 365 admin center. Third-party trackers such as IsDown and StatusGator mirror these pages. They sometimes flag problems before the official page does, but they are secondary sources, so confirm against the provider’s own page.

Origin vs. CDN-generated 503

Cloudflare’s 503 troubleshooting documentation gives a simple test. If the error page HTML contains “cloudflare” or “cloudflare-nginx”, Cloudflare generated it. If not, your origin server sent the 503 and Cloudflare passed it through. The CDN section below covers both cases.

If you’re a visitor: what you can do

As a visitor, you can’t fix a 503, because the problem is on the server. What you can do is wait, confirm the outage and find another way to get what you need.

  1. Wait 30 to 60 seconds and reload once. Short overloads clear quickly. Don’t keep hitting refresh, because every reload adds load to a struggling server.
  2. Check the service’s status page or an outage tracker.
  3. Try another network or device, such as mobile data instead of Wi-Fi. This mainly helps when a regional CDN node is failing.
  4. Clear the cache for that site only if the error lingers after the status page says the service is back. A cached error page is rare, but it happens.
  5. Stop retrying after a few attempts and come back later. Retrying every few seconds for an hour helps nobody.

A piece of forum advice repeated in a Microsoft Q&A thread calls a 503 an “abnormal connection between the device and the server” and suggests restarting your router. That advice is wrong. A 503 is a response the server chose to send, which means your connection already worked. Router resets and DNS flushes don’t change what the server says.

Microsoft 365 and OneDrive 503s

A common Microsoft Q&A question asks why OneDrive keeps showing “503 SERVICE UNAVAILABLE” and won’t open files in the browser, the desktop app, the mobile app or an incognito window. If the error shows up everywhere at once, Microsoft’s back end is failing, not your device. Only Microsoft can say when it will be fixed, through its status page or the admin center’s Service health page. If your organisation manages the account, your IT admin can see incident details there.

A follow-up question in the same threads asks how to get files back during the outage. That only works if copies already exist on your device. Files the OneDrive sync app stores locally (marked “Always keep on this device”) still open from File Explorer or Finder. Online-only placeholders don’t. Email attachments and copies you shared with others are the other fallback.

Amazon, Apple and other big-service 503s

Amazon’s dog-themed error pages, Apple service errors and Internet Archive (Wayback Machine) 503s all mean the same thing: the provider’s servers are refusing work for now. These outages are usually fixed within hours. Check the provider’s status page or social accounts and try again later.

The 6 root causes of a 503 on your own site

Web Stack Layers Diagram

On a site you run, a 503 almost always comes from one of six causes: exhausted server resources, a traffic or bot spike, a bad update or stuck maintenance mode, a rate limiter (yours or your host’s), a stopped application or backend, or a CDN or provider fault. The table groups the specific triggers under those six causes, starting with the ones that are cheapest to check.

# Cause Specific trigger How to confirm Fix
1 Bad update or stuck maintenance WordPress .maintenance left behind curl -I shows 503 plus Retry-After; .maintenance exists in the site root Delete .maintenance, purge caches
1 Bad update or stuck maintenance Plugin, theme or extension update 503 started right after an update; PHP fatal errors in debug.log Roll back or disable the component
2 Exhausted server resources PHP workers maxed out PHP-FPM log shows “server reached pm.max_children setting” Cut slow requests, cache pages, raise workers or plan
2 Exhausted server resources CPU or RAM at the limit top/htop, host graphs, out-of-memory kills in syslog Find the heavy process, cache, scale up
3 Traffic or bot spike Crawler flood, brute force, DDoS Access log shows one IP range, user agent or URL dominating Block or challenge at the WAF
4 Rate limiter (yours or the host’s) nginx limit_req/limit_conn error.log shows “limiting requests, excess: … by zone” Tune limits, return 429 instead
4 Rate limiter (yours or the host’s) Host-level throttling Plain 503 during spikes, nothing in your app logs Ask your host whether it throttles your account
5 Stopped application or backend IIS app pool stopped Pool shows Stopped; System log shows WAS Event ID 5059 Fix the crash, then start the pool
5 Stopped application or backend Apache can’t reach PHP-FPM, or a load balancer has no healthy target Apache AH01079/AH00959; ALB target group empty or unhealthy Restart the backend, fix health checks
6 CDN or provider fault Cloudflare edge or Worker fault Error HTML contains “cloudflare”; origin answers fine when bypassed Check status page, contact CDN support

Cause 1: Updates and maintenance mode

WordPress core, plugin and theme updates put the site into maintenance mode for a few seconds. If an update is interrupted, the site can stay in that state. Other platforms carry the same risk: a deploy script that switches on maintenance mode and then fails leaves the 503 in place. The WordPress section below gives the exact fix.

Cause 2: Resource exhaustion and PHP workers

Most CMS sites run PHP through PHP-FPM, which keeps a fixed pool of worker processes. Each uncached page view, admin screen, AJAX call or REST request holds one worker until it finishes. When every worker is busy, new requests queue. If the queue fills or the wait runs too long, the proxy or host answers with a 503 or 504.

The PHP-FPM log says so directly:

WARNING: [pool www] server reached pm.max_children setting (5), consider raising it

Here is a worked example. A WooCommerce store has 8 PHP workers. Product pages are cached, but cart, checkout and account pages can’t be. If each checkout request takes 2 seconds, those 8 workers handle about 4 uncached requests per second. A sale email that sends 300 people to checkout within a minute goes past that quickly. More workers aren’t always the answer. Cutting each request from 2 seconds to 1 doubles throughput the same way doubling the workers would, and it doesn’t raise your hosting bill.

Raising pm.max_children without enough RAM just moves the problem. Each worker uses memory, and too many workers lead to out-of-memory kills.

Cause 3: Bots, crawlers and DDoS

Aggressive crawlers, scrapers, login brute-force attempts and DDoS traffic all compete for the workers your customers need. Look in your access log for a single user agent, IP block or URL (xmlrpc.php, wp-login.php, search pages with random query strings) taking most of the requests. Block or challenge that traffic at the edge with a WAF so it never reaches PHP.

Cause 4: Rate limiting that returns 503

nginx rate limiting is an easy source of 503s to miss. The ngx_http_limit_req_module and ngx_http_limit_conn_module reject excess requests with a 503 by default. If your limits are too tight, real users and Googlebot get “random” 503s that look like an outage when your own config is doing exactly what it was told to do. Shared hosts often apply similar throttles at the account level, out of your view.

Cause 5: A stopped application or backend

A 503 can also mean the thing behind the web server isn’t there. Examples are an IIS application pool stopped by rapid-fail protection, PHP-FPM that Apache can’t reach, or a load balancer with no healthy targets to route to. The server-level section covers each one.

Cause 6: CDN and provider faults

Sometimes your stack is healthy and the 503 comes from the edge network or a storage service you depend on. The Cloudflare section covers how to prove it.

Fix a 503 in WordPress and WooCommerce

Fix a 503 in WordPress and WooCommerce
Illustration

In WordPress, check in this order: a stuck maintenance file, then plugins and the theme, then background load and PHP worker limits. Back up the site (files and database) before you change anything. Most managed hosts offer one-click backups, and that gives you a safe point to roll back to.

Fix a WordPress 503

  1. Run curl -I and note the status and headers.
  2. Delete a leftover .maintenance file in the site root.
  3. Rename wp-content/plugins to rule out plugins.
  4. Switch to a default theme if the 503 remains.
  5. Turn on WP_DEBUG_LOG and read wp-content/debug.log.
  6. Ask your host for PHP worker and resource usage.
  7. Purge every cache layer and test again.

Stuck in ‘Briefly unavailable for scheduled maintenance’

A site that stays on “Briefly unavailable for scheduled maintenance” after an update is one of the most common 503 cases. During updates, WordPress creates a hidden .maintenance file in the site root. If the update fails or the browser tab is closed mid-update, the file can stay behind.

At that point the site really is serving a 503. In a WP Remote test, an active .maintenance file returned HTTP 503 with a Retry-After header, and deleting the file restored HTTP 200. Googlebot gets the same signal it would get during a real outage, so a forgotten file left over a weekend affects crawling as well as visitors.

To fix it:

  1. Connect with SFTP (the encrypted form of file transfer protocol) or your host’s file manager.
  2. Turn on “show hidden files”, because the filename starts with a dot.
  3. Delete .maintenance from the folder that holds wp-config.php.
  4. Reload the site, then re-run the interrupted update. It may have left a plugin half-installed.

With WP-CLI, wp maintenance-mode status checks the state and wp maintenance-mode deactivate clears it.

Find the bad plugin or theme without wp-admin

When a plugin or theme causes the 503, you often can’t reach the dashboard. Work at the file level instead:

  1. Rename wp-content/plugins to plugins-off. WordPress then deactivates every plugin.
  2. If the site loads, rename the folder back to plugins. The plugins stay deactivated in the database.
  3. Reactivate them one at a time from wp-admin and test after each one.
  4. If plugins weren’t the cause, rename the active theme’s folder in wp-content/themes. WordPress falls back to an installed default theme such as Twenty Twenty-Five.

To see the actual error, add these lines to wp-config.php above the “That’s all, stop editing!” comment:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Errors then go to wp-content/debug.log and stay hidden from visitors. Turn debugging off again when you’re done, because on some server setups anyone can read the log file.

Heartbeat, cron and admin-ajax load

The WordPress Heartbeat API sends admin-ajax.php requests from every open dashboard tab, every 15 to 60 seconds by default depending on the screen. On a small plan, a few editors with the block editor open add up to steady PHP load. WP-Cron jobs triggered by page loads add more.

You can slow Heartbeat with a small snippet in a site-specific plugin or your child theme’s functions.php:

add_filter( 'heartbeat_settings', function ( $settings ) {
    $settings['interval'] = 60; // seconds, allowed range 15 to 120
    return $settings;
} );

The Heartbeat Control plugin by WP Rocket does the same thing from a settings screen. Third-party listings show it with over 100,000 active installs, but its WordPress.org readme lists it as tested only up to WordPress 6.3, which makes the snippet the lighter option. For cron, add define( 'DISABLE_WP_CRON', true ); and run wp-cron.php from a real server cron job every five minutes.

WooCommerce checkout 503s

A common pattern: after an update, cart and checkout pages return 503 while the rest of the store loads. That is a strong clue. Cached pages still load because they never reach PHP. Cart, checkout and My Account pages always run PHP, so they are the first to show a crash or a worker shortage.

Check these in order:

  1. The update itself. A payment gateway, shipping or other WooCommerce extension that doesn’t match the new WooCommerce version can throw a fatal error on checkout only. Check debug.log and WooCommerce > Status > Logs.
  2. Roll back the last updated extension, on a staging copy first if your host provides one.
  3. External calls. Gateways and tax or shipping-rate APIs called during checkout can tie up workers while they wait.
  4. Worker exhaustion during traffic peaks, as in the worked example in the root-causes section.

Fix a 503 on nginx, Apache and IIS

Fix a 503 on nginx, Apache and IIS
Illustration

At the server level, a 503 usually comes from a rate limiter (nginx), a failed proxy connection to the backend (Apache), a stopped application pool (IIS) or a load balancer with nothing healthy behind it. Each one leaves a clear trace in a specific log.

Platform Common 503 trigger Where to look Fix
WordPress Stuck .maintenance, plugin fatal error Site root, wp-content/debug.log Delete file, disable plugin
WooCommerce Extension conflict on checkout, worker shortage WooCommerce > Status > Logs, PHP-FPM log Roll back extension, add capacity
nginx limit_req/limit_conn rejections /var/log/nginx/error.log Tune zones, set status to 429
Apache mod_proxy can’t reach backend or PHP-FPM Apache error_log (AH01079, AH00959) Restart PHP-FPM or backend, check limits
Microsoft IIS App pool stopped by rapid-fail protection Event Viewer > System, WAS Event ID 5059; HTTPERR log Fix the crash, start the pool
Plesk (Windows) “Application pool is being automatically disabled” Plesk logs, Windows System log Fix the app error; turning off rapid-fail is a workaround only
AWS ALB No registered or healthy targets Target group Targets tab, CloudWatch, access logs Register targets, fix health checks
Kubernetes / Envoy Service has no ready endpoints Ingress controller logs, kubectl get endpoints Fix readiness probes or selectors
Cloudflare Edge or Worker fault Error HTML, Security > Events, Workers logs Check status page, report with Ray ID
Shopify Platform incident, app or theme script status.shopify.com, theme editor Wait, or remove the faulty app or theme change

503 Service Unavailable on nginx

On its own, nginx rarely produces a 503 for a broken backend. When PHP-FPM is down, nginx usually returns 502, and when PHP-FPM is too slow, it returns 504. A 503 from nginx most often means one of three things:

  • limit_req or limit_conn rejected the request. The nginx documentation states that limit_req_status and limit_conn_status both default to 503, and both directives have existed since nginx 1.3.15. A 2013 proposal on the nginx issue tracker (ticket 309) to switch the default to 429 wasn’t adopted, for backward compatibility. Every install still answers rate-limited requests with 503 unless you change it.
  • Your config deliberately returns 503, for example from a maintenance if block someone forgot to remove.
  • The upstream app sent the 503 and nginx passed it on (WordPress maintenance mode, a Node app’s health check and so on).

Search the error log for the limiter’s signature:

grep "limiting requests" /var/log/nginx/error.log | tail -20

If you find matches, change the status code and review the limits:

limit_req_zone  $binary_remote_addr zone=perip:10m rate=10r/s;
limit_conn_zone $binary_remote_addr zone=connperip:10m;

server {
    location / {
        limit_req  zone=perip burst=20 nodelay;
        limit_conn connperip 20;
        limit_req_status  429;
        limit_conn_status 429;
    }
}

Test with nginx -t and reload with systemctl reload nginx. The burst value matters a lot here. Modern pages load dozens of assets at once, and a strict rate with no burst can reject a single real visitor. Returning 429 also tells Google and API clients that you are throttling, not failing.

HTTP Error 503. The service is unavailable (IIS)

On Microsoft IIS, this plain error page nearly always means the application pool behind the site has stopped, usually because of rapid-fail protection. By default, IIS takes an application pool out of service after 5 worker process failures within 5 minutes. Microsoft’s IIS support blog describes what follows: the pool shows as Stopped, HTTP.sys answers every request with 503, and the Windows System log records WAS (Windows Process Activation Service) Event ID 5059.

The fix, in order:

  1. Open Event Viewer > Windows Logs > System and filter for source WAS. Event 5059 confirms rapid-fail protection.
  2. Find out why the worker crashed. Look in the Application log for .NET Runtime or Application Error events from the same time.
  3. Fix the crash. Typical causes are a bad deploy, a missing dependency or a corrupt config.
  4. Start the pool again:
Import-Module WebAdministration
Start-WebAppPool -Name "example.com"

or with appcmd:

%windir%\system32\inetsrv\appcmd start apppool /apppool.name:"example.com"

If the pool is running and you still get 503s, check the HTTP.sys error log in C:\Windows\System32\LogFiles\HTTPERR. Reasons such as QueueFull or AppOffline point to overload or a pool that can’t start.

Security note

Turning off rapid-fail protection keeps the site “up” while the app crashes in a loop. Plesk’s knowledge base treats it as a temporary workaround only. Fix the crash, then restore the default.

Apache and cPanel/Plesk hosting

With Apache, 503s typically come from mod_proxy or mod_proxy_fcgi failing to reach PHP-FPM or another backend. The error log shows lines such as AH01079: failed to make connection to backend or AH00959: ap_proxy_connect_backend disabling worker. Restart PHP-FPM and find out why it stopped, which is often memory.

If the log shows AH00161: server reached MaxRequestWorkers setting, Apache has run out of worker slots. New connections queue, and on hosts with a proxy in front, visitors see 503s or timeouts. Raise MaxRequestWorkers only if RAM allows, and cut slow requests first.

On cPanel and Plesk shared hosting, you often can’t see server logs. A plain 503 with nothing in your own logs usually means the host is throttling your account’s CPU, memory or process limits. Ask support directly. If it keeps happening, compare plans with another web host. On Windows Plesk servers, the message “Application pool is being automatically disabled due to a series of failures” is the IIS rapid-fail case above.

503 from load balancers and API gateways

When a load balancer or API gateway sits in front of your app, the 503 often means “I have no healthy backend to send this to.” Your servers may be up while the balancer considers them unregistered, not ready or failing health checks. Each product shows this in its own way.

Layer What the 503 usually means Signal to check Typical fix
AWS Application Load Balancer Target group has no registered targets, or an enabled Availability Zone has none CloudWatch HTTPCode_ELB_503_Count, ALB access logs, the target group’s Targets tab Register targets, link the Auto Scaling group to the target group
AWS ALB health checks Targets never pass health checks after deploys Health reason codes such as Target.ResponseCodeMismatch; aws elbv2 describe-target-health Fix the health-check path, port and expected codes; allow the ALB security group
Kubernetes ingress-nginx Ingress found the route but the Service has no ready pods Controller log: Service "..." does not have any active Endpoint; kubectl get endpoints <svc> Fix readiness probes, selector and label mismatches, or crashing pods
Envoy / Istio “no healthy upstream” Access log response flag UH (no healthy host); UF is a connection failure, UO a circuit breaker Check endpoint health on the admin clusters page, outlier detection, ports
Apigee The proxy couldn’t reach the backend, or no target server is active X-Apigee-fault-code: messaging.adaptors.http.flow.ServiceUnavailable or NoActiveTargets Fix the timeout, hostname or TLS handshake to the target; re-enable targets or fix health checks

AWS ALB. AWS’s re:Post knowledge-center guidance says that if the load balancer’s CloudWatch metrics or access logs record the 503, the ALB generated it, not your app. Open EC2 > Load Balancing > Target Groups, select the group and check the Targets tab. A newly registered target has to pass one health check before it counts as healthy. Container setups show a useful pattern, reported in AWS community threads: a 503 that alternates with 504 usually means tasks keep failing health checks and restarting.

Did you know?

According to AWS’s Application Load Balancer troubleshooting documentation, if you enable an Availability Zone that has no registered targets, the ALB node in that zone returns 503 for the HTTP requests it receives, even while every other zone works.

Kubernetes and Envoy. Run kubectl get endpoints <service-name> -n <namespace>. An empty list explains the 503. Next, check whether the Service selector matches the pod labels and whether readiness probes are failing. In Envoy-based meshes such as Istio, the UH flag in the access log separates “no healthy host” from a 503 the app returned itself, which usually has no response flag.

Apigee. Apigee’s runtime troubleshooting docs separate three cases. messaging.adaptors.http.flow.ServiceUnavailable means the Message Processor couldn’t talk to the backend because of a connection timeout, a wrong hostname or a TLS handshake failure. Apigee X and hybrid can add the reason TARGET_CONNECT_TIMEOUT. NoActiveTargets means every configured target server is disabled or failing health checks. If the backend itself returned the 503, the fault code is messaging.adaptors.http.flow.ErrorResponseCode with fault source target, and the fix belongs in the backend, not the proxy.

Builder tip

Point load balancer health checks at a lightweight static path, not the CMS homepage. Otherwise a WordPress maintenance window or a slow PHP spike can mark every target unhealthy at once and turn a brief app 503 into a full load-balancer outage.

503s from Cloudflare and other CDNs

503s from Cloudflare and other CDNs
Illustration

A 503 behind Cloudflare is either generated by Cloudflare’s edge or forwarded from your origin. Check which one before you pause the CDN. Pausing it without checking exposes your origin IP and can turn a short edge fault into a full outage on an unprotected server.

Was it Cloudflare or your origin?

View the error page source. If it contains “cloudflare” or “cloudflare-nginx”, the edge generated it. If not, your origin sent it.

  • Origin-generated: check origin logs for CPU or memory saturation, an exhausted connection pool or maintenance mode. Cloudflare’s 503 docs also suggest asking your host whether it rate-limits requests to your origin.
  • Cloudflare-generated: Cloudflare says this points to a connectivity issue in one of its data centers. Check Security > Events for active mitigations. When you contact support, include the time and time zone and the output of /cdn-cgi/trace from the affected browser.
  • Workers: a Worker that exceeds its CPU time limit can return 503. Check the Workers dashboard logs.
  • Logs-only 503s: Cloudflare notes that some 503s appear only in analytics because of unsuccessful Speed Brain prefetches. Visitors never see them, and you can ignore them.

To test the origin directly, bypass the CDN for one request:

curl -I --resolve example.com:443:203.0.113.10 https://example.com/

Replace the IP with your origin’s. If the origin returns 200 while the public URL returns 503, the problem is at the edge. If the error clears but your DNS records look wrong, check those too. A domain name system change that points traffic at an old server can cause the same symptoms.

Recent Cloudflare 503 incidents (2026)

Two 2026 cases show what edge-side 503s look like:

  • R2 object storage, September 2026: Cloudflare R2 had elevated 503 errors in the Eastern North America region for about 3.6 hours, according to the IsDown status tracker. IsDown is a third-party record, so confirm details against cloudflarestatus.com. Sites serving images or media from R2 had broken assets even though their own servers were healthy.
  • Workers at one location, November 2026: a user report on the Cloudflare Community forum (third-party and user-posted, not an official incident) described Worker routes returning Cloudflare-generated 503s only at the Athens (ATH) data center from November 6, 2026. A non-Worker route on the same zone logged 0 errors across 182,079 ATH requests. The origin was healthy. The fault was in Worker handling at one location.

The second case explains a confusing symptom: Cloudflare-generated 503s on Worker routes at one location only, with a healthy origin. Each Cloudflare location runs its own infrastructure, so a fault can hit one colo and one product while everything else works. The /cdn-cgi/trace output shows which colo you reached, and Cloudflare support needs that evidence.

Shopify, website builders and headless CMS

On hosted platforms you can’t fix the servers, but you can tell a platform outage from a problem you caused. On headless setups, a 503 often comes from an upstream API rather than your front end, and your code should retry sensibly.

Shopify and hosted builders

On Shopify, Wix, Squarespace and similar builders, the provider runs the servers. A storefront-wide 503 that also hits other stores is a platform incident. Check status.shopify.com (or your builder’s status page) and wait. A clean status page doesn’t rule out an incident, since trackers have recorded Shopify 500 and 503 errors before an official update appeared.

If only your store fails:

  1. Load the store in a private window and test another store on the same platform.
  2. Preview the published theme against an earlier theme version. A recent theme edit or app embed can break pages.
  3. Disable recently installed apps’ theme embeds one at a time.
  4. Contact platform support with the time, the URL and any request ID shown on the error page.

Headless CMS and API 503s

In a headless stack, the 503 may come from the CMS’s content API, from object storage such as Cloudflare R2 or Amazon S3, or from a serverless function that hit a concurrency or time limit. Your front end then either shows the error or fails during the build.

Build clients to respect Retry-After and back off. A minimal JavaScript example:

async function fetchWithRetry(url, options = {}, maxRetries = 4) {
  for (let attempt = 0; ; attempt++) {
    const res = await fetch(url, options);
    if (![429, 503].includes(res.status) || attempt >= maxRetries) return res;

    const header = res.headers.get('Retry-After');
    let delayMs;
    if (header && /^\d+$/.test(header)) {
      delayMs = Number(header) * 1000;                 // delay in seconds
    } else if (header) {
      delayMs = Date.parse(header) - Date.now();       // HTTP-date
    }
    if (!(delayMs > 0)) {
      delayMs = Math.min(30000, 500 * 2 ** attempt) + Math.random() * 250;
    }
    await new Promise((r) => setTimeout(r, delayMs));
  }
}

Cap retries, add jitter so many clients don’t retry in sync, and serve stale cached content to visitors while the API recovers.

503 and SEO: how long is safe?

A short 503 doesn’t hurt rankings. Google Search Central’s “Reduce the Google crawl rate” page says that returning 500, 503 or 429 for a short period, such as a couple of hours or 1 to 2 days, is the right way to slow crawling urgently. If Googlebot sees these codes on the same URL for multiple days, that URL may be dropped from Google’s index.

Duration Google’s behavior Source
Occasional 10 to 15 minutes “Not ‘extended’ by any means, so you should be fine” Gary Illyes, Google (2024)
A couple of hours to 1 or 2 days Crawl rate drops for the whole hostname, then recovers automatically as errors fall Google Search Central, Reduce the Google crawl rate
Multiple days on the same URL URL may be dropped from the index Google Search Central
Any 4xx other than 429 used to slow crawling Content can be dropped from Search Google Search Central blog, February 2023

What Googlebot does when it sees a 503

Googlebot reads a 503 as “come back later.” It slows its crawl rate for the whole hostname, not only for the failing URLs, and keeps the pages it has already indexed for now. Once the errors drop, the crawl rate rises again without any action from you. You can include Retry-After with a 503 or 429.

To check the impact, open Google Search Console > Settings > Crawl stats. The “By response” breakdown shows server error (5xx) counts and when they started. After the fix, spot-check key URLs with the URL Inspection tool.

Never use 403 or 404 to throttle Googlebot. Google’s February 2023 Search Central blog post warned specifically against it, because those codes tell Google the content is forbidden or gone. A 403 Forbidden response used for crawl control can remove pages you wanted indexed.

Why a 200 ‘maintenance’ page is worse

Some maintenance plugins and page builders show a “Coming back soon” page with status 200. Google then treats that thin page as your real content and may index it in place of your normal pages. A 503 protects your listings. A 200 maintenance page can replace them.

How to serve a correct 503 maintenance page

A correct maintenance response returns status 503, includes Retry-After, is never cached, and shows a friendly page with a time estimate and a support contact. MDN also suggests including a request or incident ID, which helps support match reports to logs.

Retry-After done right

Retry-After accepts either a number of seconds or an HTTP-date:

Retry-After: 3600
Retry-After: Fri, 27 Nov 2026 06:00:00 GMT

Use seconds for short windows and a date for planned work. Keep the estimate honest, because Googlebot and API clients may come back at that time.

nginx maintenance switch (create /var/www/maintenance.on to enable it, delete the file to disable it):

server {
    if (-f /var/www/maintenance.on) {
        return 503;
    }

    error_page 503 @maintenance;

    location @maintenance {
        root /var/www/errors;
        add_header Retry-After 3600 always;
        add_header Cache-Control "no-store" always;
        rewrite ^ /maintenance.html break;
    }
}

The always flag matters. Without it, nginx doesn’t add these headers to error responses.

Apache (.htaccess, Apache 2.4.10 or later):

RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/maintenance.on -f
RewriteCond %{REQUEST_URI} !=/maintenance.html
RewriteRule ^ - [R=503,L]

ErrorDocument 503 /maintenance.html
Header always set Retry-After "3600" "expr=%{REQUEST_STATUS} == 503"
Header always set Cache-Control "no-store" "expr=%{REQUEST_STATUS} == 503"

Keep 503s out of your cache

If a CDN or page cache stores the 503, visitors keep seeing the error after the site recovers. Send Cache-Control: no-store on maintenance responses, and make sure Cloudflare Cache Rules or similar edge rules don’t cache 5xx responses. After any fix, purge every layer in this order: the object cache, the page cache plugin, the server cache (such as nginx FastCGI cache or Varnish), then the CDN.

Builder tip

Purge from the inside out. Clearing the CDN before the page cache lets the edge refetch the stale 503 straight from your own cache.

Prevent the next 503

Most 503s on CMS sites can be prevented. The ones that keep coming back are caused by undersized capacity, unchecked bot traffic and untested updates.

  1. Uptime monitoring. Check the homepage and one uncached URL (cart or login) every minute, and alert on status codes, not just on whether the site responds.
  2. Size PHP workers to real traffic. Watch peak concurrent uncached requests, not monthly visits. Ask your host how many workers your plan includes.
  3. Cache aggressively. Every page served from cache frees a worker for checkout.
  4. Tune bots and the WAF. Challenge abusive crawlers, protect wp-login.php and xmlrpc.php, and return 429 for rate limits.
  5. Stage updates. Test core, plugin and WooCommerce extension updates on staging, and take a backup before every production update or migration.
  6. Schedule maintenance properly. Use low-traffic windows, a real 503 with Retry-After and an end time you can keep.
  7. Write down your layers. Record who runs DNS, the CDN, any load balancer, the server and the app, plus where each one’s logs and status page live.

Write the step 7 list this week, while nothing is broken. A one-page map of your layers takes about ten minutes to make, and during the next outage it tells you which log to open first.

FAQ

How do I fix a 503 Service Unavailable error?

Find the layer first, using the response headers and the error page source. Then fix that layer. You might delete a stuck WordPress .maintenance file, disable a faulty plugin, loosen nginx rate limits, restart a crashed IIS app pool after fixing the crash, repair load balancer health checks, or wait out a CDN or platform incident.

How long does a 503 error last?

Overload and planned maintenance 503s usually last from seconds to a few hours. Provider outages, such as the roughly 3.6-hour R2 incident in September 2026, are usually resolved the same day. A 503 caused by a config fault lasts until someone fixes it.

Will error 503 fix itself?

It will if the cause is temporary: a traffic spike, an update that finishes, or a provider incident. It won’t if a file, a setting or a crash loop is the cause. If a 503 on your own site lasts more than 15 to 30 minutes, start looking for the cause.

What is the root cause of 503 Service Unavailable?

The server, or a layer in front of it, has decided it can’t take the request right now. On CMS sites that comes down to six causes: a bad update or stuck maintenance mode, exhausted resources, a traffic or bot spike, a rate limiter, a stopped application or backend, or a CDN or provider fault.

Is a 503 error my fault or the website’s?

It’s almost always the website’s. A 503 is a server response, which means your connection already worked. A regional CDN fault is the only common case where switching networks is worth trying.

What is the difference between 503 and 502/504?

A 503 means the server is temporarily refusing work. A 502 means a proxy got a bad response from the upstream server, and a 504 means the proxy gave up waiting for one. Behind nginx, a dead PHP-FPM usually shows up as 502 and a slow one as 504.

Does a 503 error hurt SEO?

Not when it is short. Google says a couple of hours to 1 or 2 days of 503 only slows crawling, and Gary Illyes has called occasional 10 to 15 minute 503s fine. Several days of 503 on the same URL can get it removed from the index.

How do I fix “HTTP Error 503. The service is unavailable” in IIS?

Open IIS Manager and check whether the application pool has stopped. Look for WAS Event ID 5059 in the System log. It means rapid-fail protection stopped the pool after 5 crashes in 5 minutes. Fix whatever made the worker crash, then start the pool.

Why does nginx return 503 Service Unavailable?

Usually because its own limit_req or limit_conn module rejected the request, and both default to 503. Search the error log for “limiting requests”, set limit_req_status 429; and limit_conn_status 429;, and loosen the limits if real visitors are getting blocked.

Why does my AWS load balancer return 503?

An ALB returns 503 when it has nowhere to send the request. Usually the target group has no registered targets, or an enabled Availability Zone has none. Check the target group’s Targets tab and the health-check reason codes, and confirm the ALB’s security group can reach the targets.

What does “no healthy upstream” mean?

The message comes from Envoy, or from a gateway built on Envoy such as Istio. It means the proxy found no healthy backend endpoint to route to. Look for the UH flag in the access log, then check endpoint health, readiness probes and outlier detection.

How do I fix 503 Service Unavailable in WordPress?

Delete any leftover .maintenance file in the site root. If that isn’t the cause, rename wp-content/plugins over SFTP to rule out plugins, switch to a default theme, and turn on WP_DEBUG_LOG to read the actual error. Then ask your host whether you are hitting PHP worker or resource limits.

About this article

Written by

Writer: WordPress, Hosting & Domains, SEO & Performance

Carla Dunmore covers WordPress, hosting and domains, SEO and performance, and plugin security alerts, working from official documentation, changelogs, vendor advisories and public vulnerability databases. She checks which versions are affected and whether a fix has actually shipped before labelling an alert, and she cares most about giving site owners clear, prioritised steps they can act on.

  • Fact-checked by Moira Hensley against the sources listed below before publication.
  • Published
Sources (8)
  1. 503 Service Unavailable - http.dev (http.dev)
  2. 503 Service Unavailable - MDN Web Docs (developer.mozilla.org)
  3. Retry-After header - MDN Web Docs (developer.mozilla.org)
  4. Reduce the Google crawl rate - Google Search Central (developers.google.com)
  5. Reduce the Google crawl rate - Google Crawling docs (developers.google.com)
  6. Don't 404 my yum - Google Search Central Blog (Feb 2023) (developers.google.com)
  7. Google On The SEO Impact Of 503 Status Codes - Search Engine Journal (searchenginejournal.com)
  8. Google warns against using 403 or 404 status codes for Googlebot crawl rate limiting - Search Engine Land (searchengineland.com)