SEO & AEO
HTTP Status Codes, 404s and Soft 404s for Site Owners
What 200, 301, 302, 404, 410, 429 and 5xx mean to Google, what soft 404s are, how long crawlers keep trying and what to do with deleted pages.
HTTP status codes are the part of a website that nobody sees until something breaks. They matter because search engines read them literally: a page that says “OK” is treated differently from one that says “gone”, and the wording on the page matters less than the code the server returns.
The short answer: make the status code match reality. Pages that exist return 200, moved pages return a permanent redirect to the closest equivalent, pages that are gone return 404 or 410 and errors do not return 200. Check for soft 404s in Search Console and fix the cause, not the report.
A disclosure: Biply designs, builds and migrates websites and offers SEO, so we see these problems after launches. The facts below come from Google’s HTTP status documentation and its JavaScript SEO page.
What Google documents
- 2xx: a success code does not guarantee indexing. If the content suggests an error, such as an empty page or an error message, Search Console shows a soft 404.
- 3xx: Googlebot follows up to ten redirect hops; 301 is a strong signal and 302 and 303 are weak signals.
- 4xx: all 4xx errors except 429 are treated the same: Google tells the next processing system that the content does not exist, a previously indexed URL is removed from the index and newly encountered 404 pages are not processed. Crawling of such URLs gradually decreases. Do not use 401 or 403 to limit crawl rate.
- 429 and 5xx: 429 is treated as a server error. 500, 502 and 503 make crawlers slow down, and persistent server errors lead to removal from the index.
- Single-page apps: use a JavaScript redirect to a 404 URL or
noindexon error views to avoid soft 404s.
A plain-language map
| Situation | Right response | Wrong response |
|---|---|---|
| Page exists | 200 | 200 with an error message |
| Page moved permanently | 301 or 308 to the closest equivalent | Redirect everything to the home page |
| Page temporarily elsewhere | 302 or 307 | A permanent redirect you will reverse |
| Page deleted, no replacement | 404 or 410 | 200 with “not found” text |
| Members-only page | 401 or a login page | 403 to limit crawling |
| Server overloaded | 503, briefly | Long outages of any kind |
What the web standards reference adds
MDN’s reference pages for the codes add useful detail. A 301 says the resource has been permanently moved to the URL in the Location header; for requests other than GET, MDN suggests 308 to avoid user agents changing the request method. A 404 only indicates a missing resource without saying whether it is temporary or permanent, and MDN says if a resource is permanently removed servers should send 410 instead, while a 410 is for conditions likely to be permanent and a 404 should be used if the owner does not know. A 503 should be used for temporary conditions such as maintenance or overload, ideally with a Retry-After header, and MDN says rate limiting should use 429. In practice, a site going down for maintenance should return 503 with a retry time, not 200 with a “back soon” page and not 404.
Handling deleted pages
- Is there a close replacement? If yes, redirect permanently; see how to build a 301 redirect map.
- Is the page still useful? If so, keep it, or merge it; see content audit and pruning.
- Otherwise return 404 or 410, and make the error page helpful with search and links to main sections, without returning 200.
- Remove internal links that point to it, and the URL from your sitemap; see sitemaps and robots.txt.
Finding soft 404s
Search Console’s page indexing report lists soft 404 URLs. Open a few: they are typically empty category pages, “no results” pages, thin tag archives or error views that return 200. Fix the status where the page should not exist, add real content where it should, or redirect where there is an equivalent. See crawled, currently not indexed for related reports.
A hypothetical migration check
After a platform move, a site’s old /news/ URLs redirect to the home page, and the new “not found” template returns 200. Search Console shows soft 404s and the redirects look lazy. The plan: map the old news URLs to the matching posts, return a true 404 on the error template and re-test a sample. See the platform migration checklist and the first 90 days after relaunch.
Questions for your developer
- What status do unknown URLs return?
- Are redirects permanent where they should be?
- How long are redirect chains?
- Do error pages return the right code?
- Is there monitoring for 5xx errors?
Next steps
If you want your status codes and redirects checked, see our SEO + AEO service and contact us.
Sources
- Google Search Central, HTTP status codes, and network and DNS errors
- Google Search Central, Understand JavaScript SEO basics
- MDN, 301 Moved Permanently
- MDN, 404 Not Found
- MDN, 410 Gone
- MDN, 503 Service Unavailable
FAQ
Frequently asked questions
Does a 404 error hurt my site?
Google's documentation treats a 404 as telling its systems the content does not exist, so the URL is removed from the index if it was indexed, and newly encountered 404 pages are not processed. A 404 for a page that should not exist is normal.
What is a soft 404?
Google says if a 2xx response carries an empty page or an error message, Search Console will show a soft 404 error. It means the server says OK while the content says the page does not exist.
What is the difference between 301 and 302 redirects for Google?
Google describes 301 as a strong signal that the redirect target should be canonical and 302 and 303 as weak signals. Googlebot follows up to ten redirect hops.
What should happen to a deleted page?
If there is a close replacement, redirect to it; if not, return a 404. Do not redirect everything to the home page. See our redirect map guide.
What do 5xx errors do?
Google says 500, 502 and 503 cause its crawlers to slow down, and URLs that persistently return server errors are removed from the index.
Keep reading
- SEO & AEOContent Audit and Pruning: What to Keep, Merge or RemoveHow to audit a business website's content: build an inventory, decide keep, improve, merge or remove for each page, and handle redirects without losing traffic.
- SEO & AEOHow Much Does AEO Cost? Pricing Models and What You GetPublished AEO prices run from tens of dollars a month for tools to five figures for agencies. What drives cost, what is excluded, and how to compare quotes.
- SEO & AEOAI-Generated Content and Google: What Is AllowedWhat Google's guidance says about generative AI content, where scaled content abuse begins, and a review process for using AI drafting without publishing risk.
