A 404 error happens when a browser or a search engine crawler asks a server for a URL and the server answers with the status code 404 Not Found. The server is up and working; it just has nothing at that address. The page may have been deleted, moved without a redirect, or never existed because someone mistyped the link.
That makes a 404 different from a site that is down. When a domain doesn't resolve or the server doesn't answer, you get a connection or DNS error, not a 404.
What the 404 code says, and how 410 differs
The HTTP standard defines 404 as "not found" and nothing more: it doesn't say whether the page is gone for good or only for now. Its sibling, 410 Gone, says the removal is on purpose and probably permanent. RFC 9110
For Google the difference hardly matters. Google treats every 4xx code the same way, except 429 (too many requests). Use 410 if you want to be precise about a page you removed on purpose; use 404 otherwise. The HTTP status code article covers the other codes.
Do 404 errors hurt SEO?
Not for the rest of your site. Google says 404s don't harm a site's indexing or ranking. Search Console Help
What a 404 does affect is the missing URL itself:
- Google doesn't index a URL that returns a 4xx code, and it removes one that was already indexed.
- Google keeps the URL on file but crawls it less and less often.
- Visitors who follow an old link, from your site or someone else's, land on a dead link instead of the content they wanted.
So the question isn't "how do I get rid of all 404s" but "which of these URLs should still lead somewhere?"
Which 404s to fix, and which to leave
| What you find | What to do |
|---|---|
| The page moved, or a close replacement exists | Add a 301 redirect from the old URL to the new one |
| The URL is in your sitemap | Fix it: restore the page, redirect it, or take it out of the sitemap |
| Your own pages link to it | Update those links to the right URL |
| Other sites link to it and send visitors | Redirect it to the closest matching page |
| A common misspelling of a real URL | Redirect it to the correct page |
| The page is gone for good, with no replacement | Leave the 404 (or send 410) |
| The URL never existed on your site | Ignore it |
Google calls out the sitemap case as the one worth fixing: you asked Google to index that URL, and it isn't there. A deleted page with no replacement should keep returning 404; Google says such URLs drop out of the Search Console report after about a month.
Soft 404s: the mistake to avoid
A soft 404 is a page that tells people "not found", or shows almost nothing, while the server sends 200 OK, the code for success. Search engines then see a real page with useless content.
The most common cause is a well-meant fix: redirecting every missing URL to the homepage. Google advises against it, along with blocking 404 URLs in robots.txt. Both leave crawlers confused about what exists. Soft 404 pages also keep getting crawled, while a real 404 is a strong signal not to crawl that URL again. On a large site that matters for crawl budget.
The rule is simple: if a page doesn't exist, the server should say so with 404 or 410. If it moved, redirect it to where it went.
Make your 404 page useful to people
The status code is for machines. The page people see can still help them on their way:
- Say plainly that the page wasn't found, without blaming the visitor.
- Offer a search box and links to your main sections or most visited pages.
- Keep your normal header and navigation so the site still feels familiar.
Then check that this friendly page still sends a 404 status. Open your browser's developer tools, load a made-up URL on your site, and look at the status in the Network tab.
How to find 404s on your site
- Search Console: the Page indexing report lists URLs Google found that returned "Not found (404)". The index coverage article explains the report.
- A site crawl: a link checker follows your own links and lists the ones that end in a 404, so you can fix the link at its source.
- Server logs: show which missing URLs real visitors and bots request most often, which tells you where a redirect would help.
Start with the URLs that people or your own pages actually use. A long list of 404s for URLs nobody links to needs no work.