Skip to content

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.

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 503

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

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.

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

  2. 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, or 503 and the words your server sends with it.

  3. Read the results:

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.

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:

Terminal window
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/
If it works
200

Against a test server set to answer every request with 503:

If it fails
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:

Terminal window
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/
If it works
HTTP/2 200
date: Wed, 30 Sep 2026 20:36:06 GMT
content-type: text/html; charset=utf-8
server: cloudflare
last-modified: Mon, 28 Sep 2026 16:19:32 GMT
allow: GET, HEAD
accept-ranges: bytes
age: 4347
cf-cache-status: HIT
cf-ray: a4360492f8ff9ba1-CLE

Against the same test server:

If it fails
HTTP/1.1 503 Service Temporarily Unavailable
Server: nginx/1.24.0 (Ubuntu)
Date: Wed, 30 Sep 2026 20:36:06 GMT
Content-Type: text/html
Content-Length: 206
Connection: keep-alive

What to look for:

  • The first line of each answer has its code, such as HTTP/2 200 or HTTP/1.1 503 Service Temporarily Unavailable. HTTP/2 and HTTP/1.1 are versions of HTTP, and which one you see doesn’t matter here.
  • Server: usually names the program that sent the answer, such as nginx or Apache, 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, shows cloudflare there instead, as example.com does. 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:

Terminal window
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 20

example.com sends its whole page on one line:

If it works
<!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:

If it fails
<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>

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

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.

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.

CodeWhat it usually means
503Down for maintenance, or overloaded
502The server in front got no usable answer
500The program that builds your pages hit an error
403Forbidden: turned away, often by bot protection
404 or 410The page isn’t there
520 to 526 or 530Cloudflare can’t get an answer from your server
504The server in front gave up waiting
429Asked too often
401The page needs a login
400The server can’t read the request
301, 302, 303, 307 or 308A redirect the monitor doesn’t follow
200 to 299Success, but not the code the monitor expects
Any other codeWhat 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:

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

  1. Test the settings, which needs sudo too:

Run nginx the way you usually start it, with -t added, and look for test is successful in what it prints (nginx’s guide).

  1. 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).

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

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.

  1. 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 prints 503, delete the .maintenance file. 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.
  2. 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.

  1. 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 a try_files line, put those back too. Then skip to step 6.

  2. 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 problems even 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.

  3. 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 requests line, and the 429 section shows what to do.

  4. Run step 1 of Check it yourself again. It should print 200. Then follow Confirm DownBad sees the fix.

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.

  1. 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 upstream means 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 for https:// addresses and 80 for http:// ones.
    • upstream prematurely closed connection while reading response header from upstream means the app took the request and closed the connection without answering, often because it crashed on that request.
  2. 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.

  3. Check that the proxy sends requests where the app listens. In nginx, that is the address after proxy_pass in 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 change proxy_pass, test the settings and reload nginx, as When a fix changes nginx’s settings shows.

  4. 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).

  5. Run step 1 of Check it yourself again. It should print 200. Then follow Confirm DownBad sees the fix.

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.

  1. Find the error in your app’s log:

    • WordPress: set WP_DEBUG and WP_DEBUG_LOG to true in the file wp-config.php, load the page again, and read wp-content/debug.log (WordPress’s guide). Set them back to false when 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 .htaccess file (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-substatus field gives the finer number, such as 19 in a 500.19, and Microsoft’s list says what it means.
  2. 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 .htaccess file, then turning off all plugins, then switching to a default theme (the design WordPress shows your pages in) (WordPress’s guide).

  3. If the log says the app can’t reach its database, check that the database is running. WordPress then shows Error establishing a database connection on the page from step 3 of Check it yourself, and its guide lists the usual causes (WordPress’s guide).

  4. Run step 1 of Check it yourself again. It should print 200. Then follow Confirm DownBad sees the fix.

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.

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

  2. 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 a User-Agent entry, so let in the user agent it really sends.

  3. 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 forbidden means the address is a folder with no index file, the file a server shows for a folder, such as index.html. Point the monitor at the page’s full address, or add the file’s name to nginx’s index line (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 user www-data, which must be able to read the file and open every folder above it.
    • A rule can refuse some addresses on purpose: deny lines in nginx (nginx’s guide) and Require lines 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.

  4. Run step 1 of Check it yourself again. It should print 200. Then follow Confirm DownBad sees the fix.

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.

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

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

  3. 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 .htaccess file, 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).
  4. 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.

  1. 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).
  2. Once your server answers Cloudflare again, run step 1 of Check it yourself. It should print 200. Then follow Confirm DownBad sees the fix.

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.

  1. 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 upstream means it couldn’t connect in time.
    • upstream timed out (110: Connection timed out) while reading response header from upstream means it connected, and the answer didn’t come in time.
  2. 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.

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

  4. 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).

  5. 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_timeout line 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.

  6. Run step 1 of Check it yourself again. It should print 200. Then follow Confirm DownBad sees the fix.

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.

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

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

  3. 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 requests line in the error log, from step 4 of Check it yourself, names the limit after zone (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.

  4. Or check less often: open the monitor, press Edit, and choose a longer Check Interval under General Settings.

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

  6. Wait until the time in Retry-After: has passed, if there was one, then run step 1 of Check it yourself again. It should print 200. Then follow Confirm DownBad sees the fix.

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.

  1. If the page should be public, take the login off it. In nginx, that is an auth_basic line (nginx’s guide), and in Apache, the AuthType and Require lines 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.

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

  3. Or send the login with every check: add an Authorization header 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.

  4. Press Save Monitor, then run step 1 of Check it yourself again, with the same header added through curl’s -H option if you chose step 3 (curl’s manual). It should print the code the monitor expects. Then follow Confirm DownBad sees the fix.

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.

  1. Check the monitor’s URL. An address that starts http:// but names a port that expects https://, such as http://example.com:443/, gets this code from nginx, and the page from step 3 of Check it yourself says The plain HTTP request was sent to HTTPS port. Start it with https:// instead.

  2. 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 -H option and the body with its -d option, as curl’s manual shows (-H, -d).

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

  1. See where the redirect leads: run step 2 of Check it yourself without -L --max-redirs 5, and read the Location: line. Without a terminal, httpstatus.io shows each redirect and the code at the end of them.
Terminal window
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:

If it redirects
HTTP/1.1 301 Moved Permanently
Content-Length: 0
Location: https://github.com/
If it doesn't
HTTP/1.1 503 Service Temporarily Unavailable
Server: nginx/1.24.0 (Ubuntu)
Date: Wed, 30 Sep 2026 20:36:06 GMT
Content-Type: text/html
Content-Length: 206
Connection: keep-alive
  1. 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.
  2. Press Save Monitor, then run step 1 of Check it yourself again, without -L --max-redirs 5 if 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.

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.

  1. Open the monitor’s settings: the Monitor link at the top of the incident, then Edit.

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

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

Codes without a section above are rarer. MDN’s list of status codes says what each one means.

  1. Look up the code in MDN’s list.

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

  3. 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-Match or If-Modified-Since (MDN’s guide). Remove that header from the monitor.

  4. A code from 500 to 599 means the server failed. Read its error log, from step 4 of Check it yourself.

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

  1. Fix the cause first. A check that still fails while you work only adds to the time the incident takes to close.

  2. Open the incident and press Test Now. DownBad checks again within a few seconds instead of waiting for the next scheduled check.

  3. 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 everyAfter 1 or 2 failed checksAfter 3After 6After 14 or more
1 minute1 minute6 minutes21 minutes61 minutes
5 minutes5 minutes10 minutes25 minutes65 minutes
1 hour1 hour1 hour 5 minutes1 hour 20 minutes2 hours
1 day1 day1 day 5 minutes1 day 20 minutes1 day 1 hour

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.