Glossary

What are HTTP status codes?

Short answer

An HTTP status code is the three-digit number a server sends with every response to say what happened: 2xx success, 3xx redirect, 4xx client error such as 404 Not Found, 5xx server error such as 503 Service Unavailable. Search engines, browsers and monitoring tools rely on it, so a correct code matters as much as the content.

  • 200 OK, 301 permanent redirect, 404 not found, 410 gone, 503 unavailable.
  • Use 301 for permanent moves, 302/307 only for temporary ones.
  • A “soft 404” – an error page with status 200 – misleads everyone.
Status code classes
The five classes
1xx  informational
2xx  success              200 OK
3xx  redirection          301 · 302 · 304 · 307 · 308
4xx  client error         400 · 401 · 403 · 404 · 410 · 429
5xx  server error         500 · 502 · 503 · 504
The first digit tells you who has the problem.

An HTTP status code is the three-digit number with which a server describes the result of every request. It is the most concise and at the same time most important piece of information about whether a page was delivered correctly, is being redirected or runs into an error. Those who understand status codes can read monitoring results correctly and classify many SEO problems at a glance. This entry explains the five code classes and the codes that actually matter in everyday use.

The five classes of status codes

Status codes are grouped into five classes by their first digit, and that digit alone gives away the essentials. 1xx are purely informational interim messages that play hardly any role in everyday use. 2xx mean success: the request was understood and fulfilled. 3xx stand for redirects, where the desired resource lies elsewhere.

4xx signal an error on the side of the requester — the best-known variant is 404 for a page not found. 5xx, finally, stand for errors on the server side, where the request was basically fine but the server could not fulfil it. For monitoring the rough rule is: 2xx and deliberate 3xx are healthy, 4xx and 5xx deserve attention.

ClassMeaningExample
1xxInformation100 Continue
2xxSuccess200 OK
3xxRedirect301 Moved Permanently
4xxClient error404 Not Found
5xxServer error503 Service Unavailable

The most important individual codes

Some codes come up again and again. 200 (OK) is the normal case of a successfully delivered page. 301 (moved permanently) and 302 (moved temporarily) are redirects whose difference matters for SEO. 404 (not found) marks a missing page. 500 (internal server error) and 503 (service unavailable) indicate that the server itself is in trouble.

Beyond that it is worth knowing 410 (gone), which signals more strongly than 404 that a page is deliberately and definitively gone, and 429 (too many requests), with which a server reports overload or rate limiting. Each of these codes tells a different story about the state of your site.

301 versus 302: why the difference matters

Redirects look the same to visitors but are treated differently by search engines. A 301 says "this address has moved permanently" and prompts search engines to transfer the accumulated link signals to the new target and, over time, to replace the old address with the new one. This is the right choice when a page moves definitively to a new address.

301 vs. 302
301 Moved Permanently
Signals move to the new URL
302 Found
Old URL stays the reference
The wrong redirect type can keep old URLs in the index.

A 302 says "temporarily elsewhere" and leaves the old address in the index, since the move is only temporary. Whoever accidentally uses a 302 for a permanent move gives away ranking signals and confuses search engines. Confusing these two codes is one of the most common and consequential technical SEO mistakes.

When the code does not tell the truth

A treacherous special case is the so-called soft 404: a page that is actually missing nevertheless responds with status 200 and shows a "page not found" message in the content. To users this looks like an error, but to search engines and simple monitors it looks like a healthy page — with the result that the problem goes unnoticed and worthless pages end up in the index.

This is why, for reliable monitoring, checking the status code alone is often not enough. An additional content check — such as whether an expected keyword appears on the page — uncovers exactly the cases in which the code alone lies. The combination of status code and content check yields an honest picture of page health.

Status codes as a monitoring signal

For availability monitoring, status codes are the central success criterion. It is common to treat 2xx as healthy and to handle an unexpected switch to 4xx or 5xx as an outage. A sudden rise in 404s after a deploy points to missing redirects; a wave of 5xx indicates a server or infrastructure problem.

Status codes as an uptime signal99.95 %
90 days agoToday
Monitoring turns a stream of status codes into an uptime history.

Because the status code gives such condensed information, it is also the first thing to look at during an incident. A good monitor records not just that a check failed but with which code — this shortens fault-finding considerably, because the code already points in the right direction.

Redirect chains and their cost

Redirects are useful, but in chains they become expensive. Every additional redirect — from the old address to an intermediate one and from there to the final one — costs another request and thus load time before the user sees anything at all. Such chains often arise unintentionally over the years, when several moves follow one another and no one cleans up the intermediate steps.

  1. 301http://example.com/page
  2. 301https://example.com/page
  3. 301https://www.example.com/page
  4. 200https://www.example.com/page/
Every extra hop costs time and crawl budget.

Long chains are unfavourable for search engines too: they dilute the transferred link signals and consume crawl budget. In the worst case a redirect loop even arises, in which two addresses point at each other endlessly and the page no longer loads at all. The rule of thumb is therefore to let redirects point directly at the final target and to limit chains to a single step at most.

Rate limiting: reading 429 and 503 correctly

Two codes deserve particular attention, because they often reflect load and protection mechanisms. A 429 (too many requests) means a server is deliberately throttling because too many requests came in a short time — frequently accompanied by a Retry-After hint indicating when it is worth trying again. For monitoring this matters, because an overly aggressive check cadence can provoke such responses itself.

A 503 (service unavailable) signals that the server is temporarily overloaded or under maintenance. Unlike a 500, which indicates a genuine error, a 503 is often an orderly state — especially during announced maintenance. Handling it correctly decides whether a monitor alerts sensibly or noisily: a short, expected 503 is different from a persistent wave of 503 responses.

Using status codes correctly in practice

Status codes are not only something you monitor — you also set them yourself, and the right choice makes a difference. For a genuinely missing page, an honest 404 with a helpful, designed error page is better than a silent redirect to the homepage: the latter confuses users and, from the search engine perspective, creates a soft 404. A good 404 page explains briefly what happened and offers ways back into the site.

If, on the other hand, a page was deliberately and permanently removed, a 410 is the clearer statement than a 404. It signals to search engines that the page is not missing by mistake but is deliberately gone, and speeds its departure from the index. For plannable maintenance, in turn, a 503 with a Retry-After hint is the correct signal — it tells crawlers to come back later instead of treating the absence as a permanent error.

This deliberate use pays off in monitoring, because expected and unexpected codes then fall clearly apart. A 503 during an announced maintenance window is no cause for concern; the same code outside it is. Those who set their codes with discipline get monitoring that false-alarms less often and whose alerts carry more weight.

Status codes and caching

An often-overlooked status code is 304 (not modified). It comes into play with conditional requests: the browser or crawler asks whether a resource has changed since the last fetch, and the server answers with 304 if not — without transferring the resource again. This saves bandwidth and speeds up repeat visits, and it helps search engines conserve their crawl budget, because unchanged pages do not have to be reloaded in full.

For this to work, servers must send the appropriate caching hints and answer conditional requests correctly. A misconfigured caching layer can lead either to a 304 never coming about — in which case unnecessarily much is transferred — or to stale content being served for too long. The status code is therefore closely interlocked with the caching strategy and worth a look when performance and crawl efficiency are to be improved together.

Status codes in monitordefend

Every uptime check evaluates the status code of your homepage: a code below 400 within the time limit counts as up, an error code as a failure that is confirmed by a second attempt. Redirects are followed to the final page. The broken-link crawl evaluates the status codes of every link it checks – 404 and 410 as broken, server errors after a second attempt, and typical bot-block codes on external websites as not broken.

The success criteria are fixed rather than configurable per check, and there is no keyword or content check for soft 404s; a page that returns 200 with an error message counts as up. The integrity checker, however, reads the HTML of key pages every hour and reports redirects to foreign domains, spam terms and new external scripts, which catches many of the manipulations that a status code alone would never show. To see the exact codes and headers of a single URL, use the free HTTP header checker.

Frequently asked questions

Which status code is good, which is bad?

Roughly: 2xx and deliberately set 3xx redirects are healthy; 4xx (client errors such as 404) and 5xx (server errors) deserve attention. What matters is whether the code matches what you expect for the given address.

When do I use 301, when 302?

A 301 for permanent moves, because it transfers link signals to the new target. A 302 only for genuinely temporary redirects. A 302 for a permanent move gives away SEO signals.

What is a soft 404?

A missing page that nevertheless responds with status 200 and shows the error only in the content. To monitors and search engines it looks healthy. An additional content check uncovers such cases.

Why do I suddenly see many 404s or 500s?

Many new 404s after a deploy usually point to missing redirects; a wave of 500 or 503 indicates a server or infrastructure problem. The code already shows the direction of the fault-finding.

HTTP Header Checker

Free, no sign-up. We only fetch the public URL you enter.

Monitor your status codes

Start for free and set up your first check in minutes.

Start for free