Website Returns an Error Status Code
DownBad asked your site for a page, and your site answered with an error code instead, which says what went wrong. This page explains the common codes, helps you fix what caused yours, and shows you how to see the incident close.
What you’re seeing
Section titled “What you’re seeing”Every time a website answers a request, it starts with a three-digit status code: 200 means the page loaded, and most other codes mean it didn’t. An incident is open for a URL monitor, with the failure type http status (HTTP is the language browsers and servers use), and it shows a reason like this one:
Expected status codes 200 but got 503The numbers before but got are the codes your monitor accepts, from its
Expected Status Codes setting, with commas between them when there are
several, as in Expected status codes 200, 204 but got 503. A monitor with no
code chosen there accepts any success code from 200 to 299, and its reason
says 2xx there, as in Expected status codes 2xx but got 503. The number
after but got is the code
your site sent, and its first digit says what kind of answer it is:
- 5, from 500 to 599: the server, or a server in front of it, failed to make the page.
- 4, from 400 to 499: the server wouldn’t give DownBad the page. It may answer everyone this way, or only DownBad.
- 3, from 300 to 399: usually a redirect, which sends the visitor on to another address. 304 is the exception, covered under Any other code.
- 2, from 200 to 299: success. Your site worked, and the monitor was set to expect a different code.
DownBad asks for the monitor’s URL in HTTP, with the monitor’s
HTTP Method: GET, the way a browser asks for
a page, unless you changed it. It names itself with a short label called a
user agent, DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/). The
monitor’s User Agent setting doesn’t change that yet, which is DownBad’s to
fix; a User-Agent entry under the monitor’s HTTP Headers does, for
DownBad’s check and its re-checks alike. While Follow Redirects is on, as it is unless you
turned it off, DownBad’s check follows up to five redirects and judges the code
of the page it ends up on.
Is it you or us?
Section titled “Is it you or us?”A status code is an answer, so your server, or something in front of it, did answer DownBad. What matters is whether it gives everyone the same answer.
-
Open the monitor’s URL in your browser. If you can, use your phone over mobile data rather than Wi-Fi, so you’re on a different network from usual. An error page, or a page saying the site is down for maintenance, means it is failing for you too.
-
Check it from other countries with the free HTTP check at check-host.net. Enter the monitor’s URL. Each location’s row shows the code it got in its Code column, such as
200 (OK)for your page, or503and the words your server sends with it. -
Read the results:
- An error everywhere: your site is failing for everyone. Carry on to Check it yourself.
- Your page everywhere: run step 1 of
Check it yourself. If it prints the code the
incident shows, your site treats DownBad differently from browsers: see
the 403 section,
Bot Protection or a CDN Turns DownBad Away
and
Troubleshooting False Positives.
If it prints
200, the problem may have gone: follow Confirm DownBad sees the fix, and if the incident stays open, see Troubleshooting False Positives. - An error from some places and your page from others: your site may turn away visitors from some countries, or one of several servers behind it may be failing. Carry on to Check it yourself.
DownBad didn’t open this incident on one answer, either. When a check fails, DownBad first checks again from up to three other places in the United States, where a code the monitor doesn’t expect counts as a failure too. It opens the incident only when at least half of the places that answered failed.
Check it yourself
Section titled “Check it yourself”These commands ask for the page the way DownBad does, from your own computer.
They only read, and change nothing. They use curl, a tool that fetches web
pages, which comes with macOS and Windows; on Ubuntu or Debian, install the
curl package, the piece of software that contains it, if it isn’t there. Put the monitor’s URL in place of https://example.com/.
The first three commands send DownBad’s user agent, follow up to five redirects
as DownBad does, and give up after 23 seconds, the longest a DownBad check
waits. If the monitor’s Follow Redirects is off, leave out
-L --max-redirs 5, as DownBad does. If the monitor’s HTTP Headers has a
User-Agent entry, put its value in place of DownBad’s. They ask with GET and
nothing more from the monitor’s settings. If the monitor has another HTTP
Method, other HTTP Headers or a Request Body, add them with curl’s
-X, -H and -d options, as curl’s manual shows
(-X,
-H,
-d).
1. Ask for the page, and print the code it answers with:
curl -sS -L --max-redirs 5 -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -o /dev/null -w "%{http_code}\n" https://example.com/200Against a test server set to answer every request with 503:
503curl -sS -L --max-redirs 5 -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -o /dev/null -w "%{http_code}\n" https://example.com/200Against a test server set to answer every request with 503:
503curl.exe -sS -L --max-redirs 5 -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -o NUL -w "%{http_code}\n" https://example.com/Neither Microsoft nor curl publishes what this prints on Windows, so there
is no example here. It is the same curl as on the other systems: when it
works, it prints 200, and when it fails, it prints the code the site
sent instead, such as 503.
If it prints 000 and an error starting curl:, no code came back at all: the
site isn’t answering now, and a page for that failure, such as
Connection Timed Out or
Connection Refused, fits better.
2. See who answered. Every answer starts with headers: short lines of
information the server sends before the page. -D - prints them, for each
answer on the way when there are redirects:
curl -sS -L --max-redirs 5 -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -D - -o /dev/null https://example.com/HTTP/2 200date: Wed, 30 Sep 2026 20:36:06 GMTcontent-type: text/html; charset=utf-8server: cloudflarelast-modified: Mon, 28 Sep 2026 16:19:32 GMTallow: GET, HEADaccept-ranges: bytesage: 4347cf-cache-status: HITcf-ray: a4360492f8ff9ba1-CLEAgainst the same test server:
HTTP/1.1 503 Service Temporarily UnavailableServer: nginx/1.24.0 (Ubuntu)Date: Wed, 30 Sep 2026 20:36:06 GMTContent-Type: text/htmlContent-Length: 206Connection: keep-alivecurl -sS -L --max-redirs 5 -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -D - -o /dev/null https://example.com/HTTP/2 200date: Wed, 30 Sep 2026 20:36:06 GMTcontent-type: text/html; charset=utf-8server: cloudflarelast-modified: Mon, 28 Sep 2026 16:19:23 GMTallow: GET, HEADaccept-ranges: bytesage: 310cf-cache-status: HITcf-ray: a43604961c47c6f8-CMHAgainst the same test server:
HTTP/1.1 503 Service Temporarily UnavailableServer: nginx/1.24.0 (Ubuntu)Date: Wed, 30 Sep 2026 20:36:06 GMTContent-Type: text/htmlContent-Length: 206Connection: keep-alivecurl.exe -sS -L --max-redirs 5 -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -D - -o NUL https://example.com/Neither Microsoft nor curl publishes what this prints on Windows, so there
is no example here. It is the same curl as on the other systems: when it
works, the first line of the last answer has the code 200, and when it
fails, that line has the code the site sent instead, with the headers
after it.
What to look for:
- The first line of each answer has its code, such as
HTTP/2 200orHTTP/1.1 503 Service Temporarily Unavailable.HTTP/2andHTTP/1.1are versions of HTTP, and which one you see doesn’t matter here. Server:usually names the program that sent the answer, such asnginxorApache, two common web servers (programs that answer requests for a site’s pages), as in the failing example above. A site behind Cloudflare, a service that sits in front of many sites and delivers their pages, showscloudflarethere instead, asexample.comdoes. Who sent the code tells you where to fix it.Location:on a redirect names the address it sends the visitor to.Retry-After:asks visitors to wait before trying again, as a number of seconds or as a date and time, as MDN, Mozilla’s reference for web developers, explains (MDN’s guide).WWW-Authenticate:comes with a 401 and says the page needs a login (MDN’s guide).
3. Read the page it sent. Error pages often say what went wrong, and which program made them. This prints the first 20 lines of the page:
curl -sS -L --max-redirs 5 -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" https://example.com/ | head -n 20example.com sends its whole page on one line:
<!doctype html><html lang=en><head><meta charset=utf-8><link rel=icon href=data:,><meta name=viewport content="width=device-width,initial-scale=1"><title>Example Domain</title><style>html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:30em;min-height:100vh;margin:auto;padding:4.75em 2em 20vh;box-sizing:border-box;display:grid;place-content:center;text-align:center}</style></head><body><p>This domain is for use in documentation examples without needing permission. This is not a service, avoid relying on it for testing and monitoring purposes.</p><a href=https://iana.org/help/example-domains>Learn more</a><script src=/s.js></script></body></html>Against the same test server, the line with <hr> near the end names the
web server that made the page, nginx, and its version:
<html><head><title>503 Service Temporarily Unavailable</title></head><body><center><h1>503 Service Temporarily Unavailable</h1></center><hr><center>nginx/1.24.0 (Ubuntu)</center></body></html>curl -sS -L --max-redirs 5 -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" https://example.com/ | head -n 20example.com sends its whole page on one line:
<!doctype html><html lang=en><head><meta charset=utf-8><link rel=icon href=data:,><meta name=viewport content="width=device-width,initial-scale=1"><title>Example Domain</title><style>html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:30em;min-height:100vh;margin:auto;padding:4.75em 2em 20vh;box-sizing:border-box;display:grid;place-content:center;text-align:center}</style></head><body><p>This domain is for use in documentation examples without needing permission. This is not a service, avoid relying on it for testing and monitoring purposes.</p><a href=https://iana.org/help/example-domains>Learn more</a><script src=/s.js></script></body></html>Against the same test server, the line with <hr> near the end names the
web server that made the page, nginx, and its version:
<html><head><title>503 Service Temporarily Unavailable</title></head><body><center><h1>503 Service Temporarily Unavailable</h1></center><hr><center>nginx/1.24.0 (Ubuntu)</center></body></html>curl.exe -sS -L --max-redirs 5 -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" https://example.com/ | Select-Object -First 20Neither Microsoft nor curl publishes what this prints on Windows, so there
is no example here. Select-Object -First 20 keeps the first 20 lines, as
Microsoft’s
Select-Object reference
describes. When it works, it shows the start of your own page, and when it
fails, it shows the start of the error page the site sent.
On macOS and Linux, a long page may end with an extra line from curl. It starts
curl: (23) Failure writing output to destination, or curl: (56) followed by
the same words. That only means head, the part of the command after the |,
stopped reading once it had the first 20 lines. It says nothing about your
site.
4. If you run the server yourself, read its error log. A web server writes what went wrong into a file called its error log, and for most codes from 500 up it names the cause. You need to be logged in to the server: with SSH (a way to open a terminal on another computer), or through the console in your hosting provider’s dashboard. This shows the log’s last 20 lines:
A Mac serving a website usually runs its web server by hand. Its error log
is the file its settings name: for nginx, the error_log line
(nginx’s guide),
and for Apache, the ErrorLog line
(Apache’s guide).
tail -n 20 /var/log/nginx/error.logThe three lines below are from the test server: the first is a 502, the second a 504 and the third a 403, and each is explained in its section under Fix it.
2026/09/30 20:34:38 [error] 634#634: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "localhost:8081"2026/09/30 20:34:41 [error] 634#634: *33 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3001/", host: "localhost:8082"2026/09/30 20:34:41 [error] 634#634: *35 directory index of "/var/www/empty/" is forbidden, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", host: "localhost:8083"tail: cannot open '/var/log/nginx/error.log' for reading: Permission deniedIf you may not read it, run the same command with sudo in front, which
runs it as the server’s administrator and asks for your password. For
Apache, put /var/log/apache2/error.log in place of nginx’s log on Ubuntu
or Debian, or /var/log/httpd/error_log on Fedora and Red Hat-style
systems such as AlmaLinux, where reading it always needs sudo.
IIS, Microsoft’s web server, keeps a log for each site in its own folder
under inetpub\logs\LogFiles, on the drive Windows is installed on,
usually C:
(Microsoft’s guide).
For a failed request, note its sc-status and sc-substatus fields: the
code, and a finer number after it, such as 19 in a 500.19. Microsoft’s
guide to IIS errors
says to look both up in its
list of IIS status codes.
Without a terminal: check-host.net runs step 1 from many countries in its HTTP check. httpstatus.io runs step 2: enter your URL, and it shows the code of each answer, redirects included, and each answer’s headers when you open the result. Opening the URL in your browser shows the page from step 3, though bot protection (a service that blocks visitors it takes for programs) may let your browser in while it turns DownBad away. For step 4, a hosting platform shows its logs in its dashboard: Vercel, Netlify, for its functions and Heroku, for example.
Fix it
Section titled “Fix it”The number after but got in the incident’s reason says which section to read,
and the link below the incident’s steps opens that section. The sections run
from the most likely codes to the least.
| Code | What it usually means |
|---|---|
| 503 | Down for maintenance, or overloaded |
| 502 | The server in front got no usable answer |
| 500 | The program that builds your pages hit an error |
| 403 | Forbidden: turned away, often by bot protection |
| 404 or 410 | The page isn’t there |
| 520 to 526 or 530 | Cloudflare can’t get an answer from your server |
| 504 | The server in front gave up waiting |
| 429 | Asked too often |
| 401 | The page needs a login |
| 400 | The server can’t read the request |
| 301, 302, 303, 307 or 308 | A redirect the monitor doesn’t follow |
| 200 to 299 | Success, but not the code the monitor expects |
| Any other code | What to do with a rarer code |
Some fixes happen on the server itself, and some in your hosting provider’s
dashboard. A command that changes the server needs sudo on Linux, which
runs it as the server’s administrator and asks for your password, and each such
command below says so.
If someone else runs the site for you, such as a hosting company or a web agency, send them the reason the incident shows and a link to this page. The fix is theirs to make.
When a fix changes nginx’s settings. Several fixes below change the settings of nginx, the web server in this page’s examples. nginx reads its settings only when it starts or reloads, so make the change, test it, and reload nginx:
- Open the settings file in a text editor as the administrator, which needs
sudo. On Linux, nano is a simple text editor that runs in the terminal. Put the path of the file you’re changing in place of the one below:
Open the file in any text editor. To find it, run nginx the way you usually
start it, with -t added to test its settings
(nginx’s guide). The first line
it prints names the main settings file, as in
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok.
sudo nano /etc/nginx/sites-available/defaultIt shows the file. The top line and the three bottom lines of its screen look like this:
GNU nano 7.2 /etc/nginx/sites-available/default [ Read 91 lines ]^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line GNU nano 7.2 /etc/nginx/sites-available/default [ File '/etc/nginx/sites-available/default' is unwritable ]Move with the arrow keys and make the change. Ctrl+O and then Enter save
the file, and nano says how many lines it wrote. Ctrl+X closes nano. The
two bottom lines list these keys, with ^ standing for Ctrl.
Open the file in any text editor. To find it, run nginx for Windows from
its folder with -t added to test its settings
(nginx’s guide). The first line
it prints names the main settings file, as in
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok. IIS doesn’t use
nginx’s settings: for IIS, follow Microsoft’s advice for your status code
in its
list of IIS status codes.
- Test the settings, which needs
sudotoo:
Run nginx the way you usually start it, with -t added, and look for
test is successful in what it prints
(nginx’s guide).
sudo nginx -tnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successful2026/09/30 20:31:03 [emerg] 520#520: unexpected end of file, expecting "}" in /etc/nginx/sites-enabled/default:91nginx: configuration file /etc/nginx/nginx.conf test failed2026/09/30 20:31:03 [warn] 470#470: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1nginx: the configuration file /etc/nginx/nginx.conf syntax is ok2026/09/30 20:31:03 [emerg] 470#470: open() "/run/nginx.pid" failed (13: Permission denied)nginx: configuration file /etc/nginx/nginx.conf test failedA mistake names the file and the line after in. On Ubuntu and Debian, a
file in sites-enabled is a link to the file of the same name in
sites-available, so fix it there. Then run the test again until it is
successful.
On nginx for Windows, run it from its folder with -t added
(nginx’s guide), and look for
test is successful in what it prints.
- Reload nginx, so it uses the settings you tested. This changes the server,
so it needs
sudo:
Reload it the way you started it, with -s reload added
(nginx’s guide).
sudo systemctl reload nginxIt prints nothing when it works. nginx switches to the new settings within a moment, so a request sent at the same instant may still get the old answer.
Job for nginx.service failed.See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.Failed to reload nginx.service: Access deniedSee system logs and 'systemctl status nginx.service' for details.Some servers ask for your password there instead of refusing.
On nginx for Windows, run it from its folder with -s reload added
(nginx’s guide).
On Apache, use a graceful restart instead, which lets Apache finish the
requests it is answering before it switches, and needs sudo too. It tests the
settings first, and refuses to restart if they have a mistake
(Apache’s guide).
503: down for maintenance or overloaded
Section titled “503: down for maintenance or overloaded”A 503 means the server is up but won’t serve pages right now. Usually it is in maintenance mode (switched off on purpose while something is updated), the app behind it (the program that builds your pages, such as WordPress or your own code) has stopped, or it is too busy. The page from step 3 of Check it yourself tells these apart: a maintenance message, or the error page of the program that answered.
A 503 can also be meant for DownBad alone. Wordfence (an add-on that protects WordPress from attacks) answers 503 when one of its settings, such as rate limiting (a cap on how often one visitor may ask) or country blocking, blocks a visitor’s IP address (the number that identifies each computer on the internet) (Wordfence’s guide and its guide to rate limiting). If the page loads in your browser and from check-host.net, in Is it you or us?, and your site runs Wordfence, follow Wordfence turns DownBad away on the Bot Protection page. That 503 comes from a protection in front of your pages, not from your pages failing, so the code alone doesn’t say your site failed. If your site doesn’t run Wordfence but sits behind a host or CDN with bot protection, Bot Protection or a CDN Turns DownBad Away shows how to tell which service answered.
-
Read the page from step 3 of Check it yourself. If it says the site is down for maintenance, find what switched maintenance on:
- WordPress answers 503 with
Briefly unavailable for scheduled maintenance. Check back in a minute.while it installs updates (WordPress’s code). A file named.maintenance, in the folder WordPress is installed in, switches this on, and WordPress ignores the file once it is 10 minutes old (WordPress’s code). Wait 10 minutes and run step 1 of Check it yourself again. If it still prints503, delete the.maintenancefile. WordPress’s guide, for a site left in maintenance after an update, does that with an FTP program (one that copies files to and from a server) (WordPress’s guide), and the file manager in your hosting provider’s dashboard can do it too. - Heroku shows its maintenance page while maintenance mode is on. Turn it off with Heroku’s command-line tool, as Heroku’s guide shows (Heroku’s guide).
- Any other maintenance message was set up by whoever built the site. Ask them, or look for the rule in the web server’s settings, as in the next step.
- WordPress answers 503 with
-
If the page is the web server’s own error page, look for a rule in its settings that answers 503. In nginx, such a rule is a
return 503;line (nginx’s guide). On the server, this searches nginx’s settings for one:
Open the files in the folder that holds nginx’s settings, which
When a fix changes nginx’s settings shows how to find, and
search them for return 503; with your text editor’s search.
grep -rn "return 503" /etc/nginx/It prints the file, the line number and the line:
/etc/nginx/sites-available/default:49: return 503;It prints nothing when no file has one. A line starting grep: that says
Permission denied names a file you may not read: run the command again
with sudo in front to search that file too. If nginx runs in a
Docker container (a sealed-off package holding a program and
everything it needs), its settings are inside the container, or in the
folder you gave it, not in the server’s own /etc/nginx/, and you test
and reload nginx inside the container, as Docker’s guide to running a
command in one shows
(Docker’s guide).
With nginx for Windows, open its settings files, which
When a fix changes nginx’s settings
shows how to find, and search them for return 503; with your text
editor’s search. On IIS, such a rule comes from URL Rewrite, a
Microsoft add-on for IIS that acts on requests by rules: a rule whose
action is a CustomResponse with the status code 503. Those rules live
in the site’s Web.config file or the server’s ApplicationHost.config
(Microsoft’s guide),
so search those for 503. IIS also answers 503 when the site’s
application pool (the process IIS runs the site in) has stopped, which
step 4 covers.
-
Remove the rule: delete the
return 503;line from the file the search named, then test the settings and reload nginx, as When a fix changes nginx’s settings shows. If you had put the rule in place of other lines, such as atry_filesline, put those back too. Then skip to step 6. -
If it isn’t maintenance, the app behind the web server may have stopped. Several programs answer 503 then:
- Apache, when the app it passes requests to doesn’t take the
connection. Its page blames
maintenance downtime or capacity problemseven then, but its error log, from step 4 of Check it yourself, names where the app should be, in a line such as(111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:3000 (127.0.0.1:3000) failed. - IIS, when the site’s application pool has stopped or been disabled, which its log records as 503.0. Microsoft’s guide says to start the application pool again, and that the Windows event log, where Windows records what its services did, may say why it stopped (Microsoft’s guide).
- Heroku, when the app has crashed or isn’t running. Its logs name the error by a code starting with H, such as H10 for a crashed app (Heroku’s list).
- A load balancer (a service that shares visitors among several servers) on Amazon Web Services (AWS), when it has no servers to pass requests to, or none it may use (AWS’s guide).
Start the app again, as in The program stopped or crashed on the Connection Refused page.
- Apache, when the app it passes requests to doesn’t take the
connection. Its page blames
-
If the app is running, the server may be too busy. Your hosting provider’s dashboard usually shows graphs of its CPU (the processor) and memory, and graphs at their top for the time the incident has been open point to this. Restart the web server or app, as that same Connection Refused section shows, and if the server is that busy every day, give it more capacity: your provider’s guide shows how, such as DigitalOcean’s and AWS’s. nginx also answers 503 when its own rate limit, a cap on how often one visitor may ask, turns a request away, unless its settings choose another code (nginx’s guide). Its error log then has a
limiting requestsline, and the 429 section shows what to do. -
Run step 1 of Check it yourself again. It should print
200. Then follow Confirm DownBad sees the fix.
502: your server gave no usable answer
Section titled “502: your server gave no usable answer”A proxy is a server that takes each request, passes it on to the program
behind it, and passes the answer back: nginx or Apache in front of your app, a
load balancer (a service that shares visitors among several servers), or a
CDN (a service such as Cloudflare that delivers your site from its own
servers). A 502 means the proxy answered, because the app or server behind
it didn’t give a usable answer. Usually that program isn’t running, or it listens
somewhere other than where the proxy sends requests. The Server: header from
step 2 of Check it yourself usually names the proxy.
-
Read the proxy’s error log, from step 4 of Check it yourself. nginx names the problem, and the address it passed the request to after
upstream::connect() failed (111: Connection refused) while connecting to upstreammeans nothing is listening at that address. The app has stopped, or it listens on another port, the number a program answers on, such as 443 forhttps://addresses and 80 forhttp://ones.upstream prematurely closed connection while reading response header from upstreammeans the app took the request and closed the connection without answering, often because it crashed on that request.
-
Check that the app is running, and start it again if it isn’t, as in The program stopped or crashed on the Connection Refused page. If it crashed, its own log usually says why.
-
Check that the proxy sends requests where the app listens. In nginx, that is the address after
proxy_passin its settings (nginx’s guide). Its port must be one the app listens on: step 4 of Check it yourself on the Connection Refused page lists the ports the server listens on. If you changeproxy_pass, test the settings and reload nginx, as When a fix changes nginx’s settings shows. -
If a load balancer or CDN sits in front of your site, its own guide explains its 502: AWS load balancers and Amazon CloudFront, for example. Behind Cloudflare, a 502 page with Cloudflare’s branding means your own server sent the 502, and a blank page without it means Cloudflare did (Cloudflare’s guide).
-
Run step 1 of Check it yourself again. It should print
200. Then follow Confirm DownBad sees the fix.
500: your app hit an error
Section titled “500: your app hit an error”A 500 means the program that made the page ran into an error it didn’t handle. Usually that is your app, such as WordPress or your own code, and the fault is in the app, its settings, or something it depends on, such as its database. Sometimes it is the web server itself, such as Apache with a mistake in its settings.
-
Find the error in your app’s log:
- WordPress: set
WP_DEBUGandWP_DEBUG_LOGtotruein the filewp-config.php, load the page again, and readwp-content/debug.log(WordPress’s guide). Set them back tofalsewhen you’re done. - Vercel: the project’s Logs (Vercel’s guide).
- Netlify: the logs of the site’s functions (Netlify’s guide).
- Heroku: the app’s logs, in its dashboard or through Heroku’s command-line tool (Heroku’s guide).
- Your own server: the web server’s error log, from step 4 of
Check it yourself. On Apache, a mistake in an
.htaccessfile (a settings file for one folder) answers 500 for that whole folder, and the log names the file. Here, a line in it needs a module that isn’t turned on:/var/www/html/blog/.htaccess: Invalid command 'Rewriteengine', perhaps misspelled or defined by a module not included in the server configuration. - IIS: the log’s
sc-substatusfield gives the finer number, such as 19 in a 500.19, and Microsoft’s list says what it means.
- WordPress: set
-
If the errors started just after a change, such as an update, a new plugin (an add-on that gives WordPress or another app more features) or a new version of your app, undo it. Hosting platforms can go back to the version before: Vercel, Netlify and Heroku. On WordPress, its guide to this error starts with a damaged
.htaccessfile, then turning off all plugins, then switching to a default theme (the design WordPress shows your pages in) (WordPress’s guide). -
If the log says the app can’t reach its database, check that the database is running. WordPress then shows
Error establishing a database connectionon the page from step 3 of Check it yourself, and its guide lists the usual causes (WordPress’s guide). -
Run step 1 of Check it yourself again. It should print
200. Then follow Confirm DownBad sees the fix.
403: access to the page is forbidden
Section titled “403: access to the page is forbidden”A 403 means the server understood the request and refused it. Either something in front of your site turns DownBad away, such as bot protection (a service that blocks visitors it takes for programs) or a rule in a firewall (software that decides which requests get through), or the server refuses everyone, for example because it may not read the page’s files.
-
If the page loads in your browser and from check-host.net, in Is it you or us?, but step 1 of Check it yourself prints
403, the block is aimed at DownBad. A host or CDN in front of your site answers its challenge or block with a 403 of its own, as Cloudflare does with a challenge and Vercel and AWS WAF do with a block, so the code alone doesn’t say your site failed. Follow Bot Protection or a CDN Turns DownBad Away, which shows how to tell which service answered and how to let your checks through, or, if your site lets in only some countries, Your site blocks visitors from other countries. Every DownBad check comes from the United States. -
If you set the monitor’s User Agent to get past bot protection, it hasn’t changed what DownBad sends: DownBad doesn’t use that setting yet, which is DownBad’s to fix. Every check still sends
DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/), unless the monitor’s HTTP Headers has aUser-Agententry, so let in the user agent it really sends. -
If everyone gets a 403, the server itself refuses the page, and its error log, from step 4 of Check it yourself, says why:
directory index of "/var/www/html/" is forbiddenmeans the address is a folder with no index file, the file a server shows for a folder, such asindex.html. Point the monitor at the page’s full address, or add the file’s name to nginx’sindexline (nginx’s guide).(13: Permission denied)after a file’s name means the web server may not read that file. On Ubuntu the web server runs as the userwww-data, which must be able to read the file and open every folder above it.- A rule can refuse some addresses on purpose:
denylines in nginx (nginx’s guide) andRequirelines in Apache (Apache’s guide). DownBad’s checks don’t come from fixed addresses, so a rule that lets in only some addresses turns DownBad away.
Changing a file’s permissions needs
sudo. After a change to nginx’s settings, test them and reload nginx, as When a fix changes nginx’s settings shows. -
Run step 1 of Check it yourself again. It should print
200. Then follow Confirm DownBad sees the fix.
404 or 410: the page isn’t there
Section titled “404 or 410: the page isn’t there”A 404 means the server has no page at that address, and a 410 that the page was removed on purpose. The site may be fine: the monitor may be asking for an address that’s wrong, or that has moved.
-
Open the monitor’s settings: the Monitor link at the top of the incident, then Edit. Compare its URL, under Monitor Configuration, letter by letter with the page’s address in your browser’s address bar.
-
If the page moved, put its new address in the monitor’s URL and press Save Monitor. Or send the old address on to the new one with a redirect, which helps visitors with old links too: nginx, Apache, Netlify and Vercel each explain how. A redirect in nginx’s settings works once you test the settings and reload nginx, as When a fix changes nginx’s settings at the start of Fix it shows.
-
If the address is right and still answers 404:
- On WordPress, when posts answer 404 but the home page works,
WordPress’s guide says to reset your permalinks (the pattern of your
posts’ addresses) under Settings → Permalinks. If that doesn’t help,
it says to fix the
.htaccessfile, or to ask your host to turn on mod_rewrite, the part of Apache that those addresses need (WordPress’s guide). - A single-page app (a site that builds its pages in the browser), on a host that only serves files, may answer 404 for every address but its home page when one is asked for directly, though it works when you click through from the home page. Netlify’s guide shows the rule that fixes it (Netlify’s guide).
- On WordPress, when posts answer 404 but the home page works,
WordPress’s guide says to reset your permalinks (the pattern of your
posts’ addresses) under Settings → Permalinks. If that doesn’t help,
it says to fix the
-
Run step 1 of Check it yourself again. It should print
200. Then follow Confirm DownBad sees the fix.
520 to 526 or 530: Cloudflare can’t get an answer
Section titled “520 to 526 or 530: Cloudflare can’t get an answer”These codes come from Cloudflare itself, not from your server. Cloudflare is
a CDN, a service that sits in front of your site and delivers it from its
own servers, and each code says how it failed to get an answer from your server
behind it. The Server: header from step 2 of
Check it yourself says cloudflare, and the page from
step 3 is Cloudflare’s own error page, naming the code. The fix is on your
server, or in how Cloudflare reaches it.
-
Find your code below, and follow Cloudflare’s guide to it:
- 520: your server’s answer was empty, or not one Cloudflare could read (Cloudflare’s guide).
- 521: your server refused Cloudflare’s connection. The web server is stopped, or a firewall turns Cloudflare away (Cloudflare’s guide).
- 522: Cloudflare’s connection to your server timed out (Cloudflare’s guide).
- 523: Cloudflare can’t reach your server’s address at all (Cloudflare’s guide).
- 524: your server took the connection but didn’t answer in time (Cloudflare’s guide). By default, Cloudflare waits longer than any DownBad check does, so DownBad usually reports a timeout instead, which Connection Timed Out covers.
- 525: the secure connection between Cloudflare and your server failed (Cloudflare’s guide).
- 526: your server’s certificate (the file that lets it use
https://) isn’t one Cloudflare accepts (Cloudflare’s guide). - 530: Cloudflare shows a second error number with it, from 1000 up, and that number’s guide says what to fix (Cloudflare’s guide).
-
Once your server answers Cloudflare again, run step 1 of Check it yourself. It should print
200. Then follow Confirm DownBad sees the fix.
504: your server didn’t answer in time
Section titled “504: your server didn’t answer in time”A 504 means a proxy in front of your app, such as nginx, a load balancer or a CDN, gave up waiting on the app or server behind it. Either it couldn’t connect in time, because that server is down or something drops the connection, or it connected and the answer didn’t come in time, because the app is stuck, overloaded, or waiting on something slow such as its database.
-
Read the proxy’s error log, from step 4 of Check it yourself. nginx says which of the two happened, with the app’s address after
upstream::upstream timed out (110: Connection timed out) while connecting to upstreammeans it couldn’t connect in time.upstream timed out (110: Connection timed out) while reading response header from upstreammeans it connected, and the answer didn’t come in time.
-
If it couldn’t connect, check that the app’s server is running, and that no firewall between the proxy and the app drops the connection. A firewall drops the connection, on the Connection Timed Out page, shows how to check both the firewall in your hosting provider’s dashboard and the one on the server.
-
If the answer didn’t come in time, restart the app if it is stuck, as in The program stopped or crashed on the Connection Refused page. If it is slow every time, find what holds it up with Slow Response Times.
-
If a load balancer or CDN sits in front of your site, its own guide lists the causes of its 504: AWS load balancers and Amazon CloudFront, for example. Behind Cloudflare, a 504 page with Cloudflare’s branding means your own server sent the 504, and a blank page without it means Cloudflare did (Cloudflare’s guide).
-
Only raise the proxy’s time limit if the page really needs longer. nginx gives up when the app sends nothing for 60 seconds, unless its
proxy_read_timeoutline says otherwise (nginx’s guide). A DownBad check waits as long as the monitor’s Timeout, which is 10 seconds for a monitor added when you signed up, and never more than 23 seconds, so a page that takes longer than that fails either way. If you do raise nginx’s limit, test the settings and reload nginx, as When a fix changes nginx’s settings shows. -
Run step 1 of Check it yourself again. It should print
200. Then follow Confirm DownBad sees the fix.
429: too many requests
Section titled “429: too many requests”A 429 means your site, or a service in front of it, caps how often one visitor may ask, which is called a rate limit, and DownBad’s checks went over it.
-
Look for a
Retry-After:header in step 2 of Check it yourself. It says how long the site asks visitors to wait before asking again. -
If step 2 of Check it yourself shows
x-vercel-mitigated: challenge, the 429 isn’t a limit at all: Vercel’s bot protection answers its challenge with 429, so the code alone doesn’t say your site failed. Follow Vercel challenges or blocks DownBad on the Bot Protection page, which also covers other hosts and CDNs. -
Otherwise, let DownBad’s checks past the limit. The False Positives page shows how on Cloudflare, AWS and nginx, in Your site limits how often it can be asked. In nginx, a
limiting requestsline in the error log, from step 4 of Check it yourself, names the limit afterzone(nginx’s guide). After changing how many requests that limit allows, test the settings and reload nginx, as When a fix changes nginx’s settings shows. Changing what the limit counts by, as the False Positives page does to leave DownBad out, needs a restart instead: nginx keeps the old setting on a reload. -
Or check less often: open the monitor, press Edit, and choose a longer Check Interval under General Settings.
-
Or point the monitor at a small page the limit doesn’t cover, such as one your app serves only to show that it is up.
-
Wait until the time in
Retry-After:has passed, if there was one, then run step 1 of Check it yourself again. It should print200. Then follow Confirm DownBad sees the fix.
401: the page needs a login
Section titled “401: the page needs a login”A 401 means the page asks for a username and password, or a key, before it
answers: a site still being built behind a password, for example, or an
API (an address for programs rather than people) that needs a key. Step 2
of Check it yourself shows a WWW-Authenticate: header
on such a page.
-
If the page should be public, take the login off it. In nginx, that is an
auth_basicline (nginx’s guide), and in Apache, theAuthTypeandRequirelines its guide to logins describes (Apache’s guide). After changing nginx’s settings, test them and reload nginx, as When a fix changes nginx’s settings shows. -
If the login is meant to be there, point the monitor at a page that doesn’t need one. Or add 401 under Expected Status Codes in the monitor’s settings, so DownBad counts the login prompt as the site being up. It then checks only that the server answers.
-
Or send the login with every check: add an
Authorizationheader under the monitor’s HTTP Headers. DownBad sends the monitor’s headers with every check, the re-checks from other places included. Use an account that can do nothing but read that page. -
Press Save Monitor, then run step 1 of Check it yourself again, with the same header added through curl’s
-Hoption if you chose step 3 (curl’s manual). It should print the code the monitor expects. Then follow Confirm DownBad sees the fix.
400: the server can’t read the request
Section titled “400: the server can’t read the request”A 400 means the server decided the request was malformed. For a monitor, the cause is usually its own settings: an address the server doesn’t expect, or headers or a body you added.
-
Check the monitor’s URL. An address that starts
http://but names a port that expectshttps://, such ashttp://example.com:443/, gets this code from nginx, and the page from step 3 of Check it yourself saysThe plain HTTP request was sent to HTTPS port. Start it withhttps://instead. -
Check the monitor’s HTTP Headers and Request Body. Remove any you don’t need, and compare the rest with what the site’s own documentation asks for. The commands in Check it yourself send neither, so when you run them again, add each header with curl’s
-Hoption and the body with its-doption, as curl’s manual shows (-H,-d). -
Press Save Monitor, then run step 1 of Check it yourself again. It should print
200. Then follow Confirm DownBad sees the fix.
301, 302, 303, 307 or 308: the monitor doesn’t follow redirects
Section titled “301, 302, 303, 307 or 308: the monitor doesn’t follow redirects”These codes are redirects: the page sends the visitor on to another
address, which the Location: header names. Browsers follow them without you
noticing. DownBad’s check follows up to five while the monitor’s Follow
Redirects is on. When it’s off, the redirect itself is the answer, and the
check fails unless the monitor expects that code.
- See where the redirect leads: run step 2 of
Check it yourself without
-L --max-redirs 5, and read theLocation:line. Without a terminal, httpstatus.io shows each redirect and the code at the end of them.
curl -sS -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -D - -o /dev/null http://example.com/http://github.com/ sends visitors on to its https:// address, so this
example asked for it:
HTTP/1.1 301 Moved PermanentlyContent-Length: 0Location: https://github.com/HTTP/1.1 503 Service Temporarily UnavailableServer: nginx/1.24.0 (Ubuntu)Date: Wed, 30 Sep 2026 20:36:06 GMTContent-Type: text/htmlContent-Length: 206Connection: keep-alivecurl -sS -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -D - -o /dev/null http://example.com/http://github.com/ sends visitors on to its https:// address, so this
example asked for it:
HTTP/1.1 301 Moved PermanentlyContent-Length: 0Location: https://github.com/HTTP/1.1 503 Service Temporarily UnavailableServer: nginx/1.24.0 (Ubuntu)Date: Wed, 30 Sep 2026 20:36:06 GMTContent-Type: text/htmlContent-Length: 206Connection: keep-alivecurl.exe -sS -m 23 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -D - -o NUL http://example.com/Neither Microsoft nor curl publishes what this prints on Windows, so there
is no example here. When it works, the first line has the redirect’s
code, such as 301 Moved Permanently, and a Location: line names where
it leads. When the address doesn’t redirect, the first line has another
code, and there is no Location: line.
-
Choose one, in the monitor’s settings under Monitor Configuration:
- Turn on Follow Redirects, so DownBad checks the page the redirect leads to.
- Or put the address from
Location:in the monitor’s URL, so it asks for that page directly. - Or, to check that the redirect itself is there, add its code under Expected Status Codes. The editor offers 301 and 302 there.
-
Press Save Monitor, then run step 1 of Check it yourself again, without
-L --max-redirs 5if Follow Redirects is still off. It should print the code the monitor expects. Then follow Confirm DownBad sees the fix.
With Follow Redirects on, more than five redirects in a row fail with a
different reason, Maximum number of redirects exceeded.
The monitor expects a different code
Section titled “The monitor expects a different code”This is the cause when the code after but got is the one your page is meant
to send, and the monitor’s Expected Status Codes doesn’t list it: a success
code other than 200, such as 204 from an API, or 200 on a monitor set to expect
a redirect. A monitor with no code chosen there accepts any code from 200 to
299, as the editor’s hint for that setting says, so this cause applies only to
a monitor whose Expected Status Codes lists codes: it accepts those codes
and no others.
-
Open the monitor’s settings: the Monitor link at the top of the incident, then Edit.
-
Under Monitor Configuration, in Expected Status Codes, select the code your page sends. The editor offers 200, 201, 204, 301, 302, 304, 400, 401, 403, 404, 500, 502 and 503. For a success code it doesn’t offer, such as 202, select none of them: a monitor with no code chosen accepts any code from 200 to 299. For any other code it doesn’t offer, point the monitor at an address on your site that answers one it does.
-
Press Save Monitor, then run step 1 of Check it yourself. It should print the code you selected. Then follow Confirm DownBad sees the fix.
Any other code
Section titled “Any other code”Codes without a section above are rarer. MDN’s list of status codes says what each one means.
-
Look up the code in MDN’s list.
-
A code from 400 to 499 means the server turned the request down. Compare the monitor’s URL, HTTP Method, HTTP Headers and Request Body with what the site expects.
-
A 304 means the page hasn’t changed since a copy the request named, which happens when the monitor’s HTTP Headers include
If-None-MatchorIf-Modified-Since(MDN’s guide). Remove that header from the monitor. -
A code from 500 to 599 means the server failed. Read its error log, from step 4 of Check it yourself.
-
Once it’s fixed, run step 1 of Check it yourself again. It should print the code the monitor expects. Then follow Confirm DownBad sees the fix.
Confirm DownBad sees the fix
Section titled “Confirm DownBad sees the fix”-
Fix the cause first. A check that still fails while you work only adds to the time the incident takes to close.
-
Open the incident and press Test Now. DownBad checks again within a few seconds instead of waiting for the next scheduled check.
-
Wait a minute, then reload the incident page, which doesn’t update by itself. The incident closes by itself once enough checks in a row pass. You can’t close an incident by hand.
How many passing checks it takes. While an incident is open, DownBad checks less often after repeated failures. This is called back-off. Each failed check adds one step of back-off, up to 14. Each passing check takes one step away and asks for the next check straight away. When no steps are left, one more passing check closes the incident. So after a steady outage it takes one more passing check than there were failed checks while the incident was open, counting the one that opened it, and never more than 15.
These are the defaults. The monitor’s notification profile can change them for each monitor type under Backoff Config, and its settings are the ones that count: Recovery is how many passing checks in a row, with no back-off left, close the incident (2 by default, counting the check that takes the last step away), and Start after, Rate and Max interval decide when back-off starts and how far it goes. If the profile changes them, the step counts above and the waits below change with them.
How long that takes. After you press Test Now, those passing checks run back to back, a few seconds apart, so the incident usually closes within a minute. It takes longer when checks are slow to finish, such as a page that takes several seconds to load.
If you don’t press Test Now, the first passing check waits for the next scheduled one. With the default settings, from the third failed check on, DownBad waits 5 more minutes for each failure, up to an hour more than the monitor’s usual interval:
| Monitor checks every | After 1 or 2 failed checks | After 3 | After 6 | After 14 or more |
|---|---|---|---|---|
| 1 minute | 1 minute | 6 minutes | 21 minutes | 61 minutes |
| 5 minutes | 5 minutes | 10 minutes | 25 minutes | 65 minutes |
| 1 hour | 1 hour | 1 hour 5 minutes | 1 hour 20 minutes | 2 hours |
| 1 day | 1 day | 1 day 5 minutes | 1 day 20 minutes | 1 day 1 hour |
Still stuck
Section titled “Still stuck”Before you ask for help, collect:
- the link to the incident, and the reason it shows, word for word
- the output of the commands in Check it yourself, with the time you ran them and your time zone
- the link to your check-host.net results
- the lines from your error log for the times of the failed checks
Then send all of it to us through Contact Us.