RankDossier
Check family

HTTP status errors: 4xx, 5xx and soft 404 pages explained

Every request returns a status code that tells browsers and crawlers what happened. These checks find a site that does not respond, pages with 4xx or 5xx errors, a wrong content type, and soft 404s, where a missing page answers with status 200 and a “not found” message. Return 404 or 410 for missing pages, fix real errors, and send the right content type.

How the problem happens

A theme or app shows a friendly error page but forgets to set the status, a removed page keeps being linked, or a server fails under load. A catch-all rule can turn every unknown address into a normal page.

Why status code errors cost visitors, crawl time and index coverage

The status code is the first line of every response and the first signal a crawler reads. A 200 says the page exists and can be indexed, a 404 or 410 says it is gone, a 5xx says the server failed. When a site answers incorrectly, crawlers make wrong decisions at scale. Links that lead to 4xx pages waste both the visitor's click and the link value that pointed there. A burst of 5xx errors makes Google slow down its crawl of the whole host, and pages that keep failing drop from the index.

The quiet failure is the soft 404: a page that says “not found” but answers 200, or an unknown address that is served as an empty, normal page. Google often detects these and treats them as errors, but only after spending crawl time on them, and detection is not guaranteed: a site that returns 200 for every address risks having thin, useless pages indexed. Content served with the wrong Content-Type may not be treated as a web page at all. For AI assistants that fetch a page live, an error response simply means no answer from your site.

How to check status codes by hand

Request headers only with curl -I https://example.com/some-page and read the first line. Test the pages you care about, the pages your own links point to, and a made-up address such as /no-such-page-12345, which must return 404 or 410, never 200. Open an error page in the browser and compare what you see with what the status says: a friendly message with status 200 is a soft 404.

For many addresses, loop over a list of URLs and print each status code, as in the example below. Check the Network panel for the Content-Type of the main document, which should be text/html; charset=utf-8. Look for pages that load and then replace their content with an error message through JavaScript while the server answered 200. In Google Search Console, the page indexing report lists pages excluded because of 404, soft 404 or server errors, and the crawl stats show the response time and the error rate Google experienced.

# short planned maintenance: tell crawlers to come back later
HTTP/1.1 503 Service Unavailable
Retry-After: 3600
Content-Type: text/html; charset=utf-8

# page that is gone for good
HTTP/1.1 410 Gone

# list status codes of many URLs
while read -r u; do printf '%s ' "$u"; curl -s -I "$u" | head -n 1; done < urls.txt

How to fix status code problems in code, server and CMS

Make the status match the truth. When the data behind a route is missing, return 404 from the application, not a styled page with 200, and keep a real not-found template that sets the status. Use 410 when a page was removed on purpose and will not return. If a page moved, redirect it with a permanent redirect to its closest equivalent instead of leaving a dead link. Check that catch-all rules, such as a fallback to the home page, do not turn every unknown address into a normal page.

For server errors, find the cause in the logs: exhausted workers, a slow database, a failing upstream. Add monitoring so you hear about a 5xx before Google does. For planned maintenance, answer with 503 and a Retry-After header, which tells crawlers the outage is temporary. Send HTML pages with text/html; charset=utf-8. Finally, remove or update the internal links that point to dead addresses, since each is an error you created yourself.

How RankDossier detects status code problems

RankDossier requests every address it finds and records the status, the headers and the content. The checks in this family report a site that does not respond at all, pages that return 4xx and 5xx, pages whose text says “not found” but whose status is 200, pages that show an error only after JavaScript runs, a wrong content type on an HTML page, and a site that answers 200 for addresses that do not exist, which it tests with made-up URLs.

Each finding names the address, the status that was seen and where it was linked from, so you can fix the link or the response. For redirect-related cases use the Broken link checker. The guide to broken links and redirects explains how to clean up in the right order, the guide to pages that are not indexed covers what happens after errors, and the Core Web Vitals guide links slow responses to the experience of real visitors.

Wrong and right

Wrong

GET /missing-page  ->  200 OK  (body: "Page not found")
GET /missing-page  ->  404 Not Found  (body: "Page not found")

How to fix it

WordPress

Find the broken addresses in the report, redirect those that moved to their new page, and use a 404 template that really returns the 404 status. Remove links to pages you deleted.

Next.js

Call notFound() when the data for a route is missing and keep a not-found file, so unknown addresses return 404 instead of an empty page with status 200.

// app/products/[id]/page.tsx
import { notFound } from 'next/navigation';

const product = await getProduct(id);
if (!product) notFound();

Nginx

Define error_page 404 with an internal page, avoid a catch-all try_files that serves the home page, and check a made-up address with curl -I to see the status line.

error_page 404 /404.html;
location = /404.html { internal; }
# check: curl -s -I https://example.com/no-such-page | head -1

Check codes in this family

These checks belong to this family. Each code appears in the audit report with its own explanation and fix.

  • HOST_UNREACHABLE Site does not respond
  • NOT_FOUND_SOFT Non-existent pages return 200
  • PAGE_4XX Pages return 4xx
  • PAGE_5XX Pages return server errors
  • PAGE_SOFT_404 Soft 404: “not found” with status 200
  • SOFT_404_RENDERED Page shows “not found” after loading
  • PAGE_CONTENT_TYPE Page with a wrong Content-Type

Read the full guide Broken links and redirects: find and fix each 404 and redirect chain for the wider picture. Test one page for free with the Broken link checker.

Check your own site

Enter a domain – the free pre-check reads up to 10 pages and shows how many types of problems it finds. You pay only if you want the full report.

Start the free pre-check