404 Not Found

Updated July 15, 2026

Definition

A 404 Not Found response is an HTTP status code indicating that the server could not find the requested resource.

On this page
  1. How an HTTP 404 response works
  2. Common causes of 404 errors
  3. 404 vs soft 404
  4. 404 vs 410 and server errors
  5. How 404 pages affect crawling and users
  6. When to restore, redirect, or keep a 404
  7. Custom 404 page best practices
  8. How to find 404 errors
  9. Common 404 handling mistakes

How an HTTP 404 response works

A browser or crawler requests a URL. The server is reachable, but it cannot find a current resource at that path, so it returns status 404. The response may include a helpful HTML page, but the status code still tells machines that the requested resource is missing.

HTTP/1.1 404 Not Found
Content-Type: text/html; charset=utf-8

A 404 is a client-error response, not proof that the whole server is unavailable. The host may serve other URLs normally. The response also does not explain why the resource is missing. It could have been deleted, moved without a redirect, typed incorrectly, or never existed.

Common causes of 404 errors

  • A page or file was removed without a replacement.
  • An internal or external link contains a typo.
  • A migration changed the path but missed the redirect.
  • A product, user, or article identifier no longer exists.
  • A deployment failed to publish a route or static asset.
  • A crawler discovered an invented parameter or malformed URL.

Some 404s reflect a real defect. Others are normal noise from old links, user mistakes, and automated URL guessing. The context determines the response.

404 vs soft 404

A true 404 returns the 404 status. A soft 404 looks like an error or empty page but returns 200 OK, a redirect to an irrelevant page, or another response that suggests the resource exists. Soft 404s create mixed signals. Users see that nothing useful is available while crawlers receive a success response. Google may classify the URL as a soft 404 and exclude it from Search. A branded error page can still be a true 404. Design and status are separate. Keep the helpful page, but return the correct status from the missing URL.

404 vs 410 and server errors

404 means the server did not find the resource and does not state whether the condition is temporary or permanent. 410 Gone says the resource is intentionally and permanently unavailable. Both can be correct for removed content. A 410 is more explicit, but a normal 404 is sufficient for most removals. Use the code your platform can maintain consistently. A 500-class response describes a server failure. Do not return 404 when the application is overloaded or the database is temporarily down. That can make a recoverable outage look like permanent missing inventory.

How 404 pages affect crawling and users

Search engines expect missing URLs on the web. A few correct 404 responses do not create a site-wide penalty. The practical problem begins when important links lead to missing pages or a large broken inventory wastes visits and crawl requests. For users, a 404 interrupts the task. A visitor may have followed a search result, bookmark, or product link and now needs a clear route forward. For crawlers, repeated internal links to 404 URLs consume requests and break discovery paths. The missing URL itself is less concerning than the live pages that continue to reference it.

When to restore, redirect, or keep a 404

Restore the URL

Restore content when the resource should still exist and the 404 resulted from a publishing, routing, or infrastructure mistake.

Redirect to a relevant replacement

Use a 301 when the old resource has a close permanent replacement that satisfies the same intent. Update internal links to the destination instead of relying on the redirect forever.

Keep the 404

Keep a true 404 when the URL has no useful replacement or was never valid. Redirecting unrelated removals to the homepage can confuse users and may be treated as a soft 404.

Custom 404 page best practices

  • Say clearly that the requested page was not found.
  • Keep the site’s navigation, visual identity, and language.
  • Offer a small number of useful next steps or a search box.
  • Link to stable category, help, or home pages.
  • Avoid automatically redirecting visitors after a timer.
  • Return the 404 status from the original missing URL.

Do not turn the error template into a dense directory. The visitor needs orientation, not every possible destination.

How to find 404 errors

  1. Crawl the site and export internal links that resolve to 404.
  2. Review server logs for frequent 404 requests and their referrers.
  3. Check Search Console indexing and crawl reports for important patterns.
  4. Test URLs from sitemaps, canonical tags, hreflang, and structured data.
  5. Monitor external backlinks to removed URLs with a relevant replacement.

Prioritize by impact. An internally linked product page with traffic deserves attention before a random malformed URL requested once by a bot.

Common 404 handling mistakes

  • Redirecting every missing URL to the homepage.
  • Returning 200 OK for an error template.
  • Blocking missing URLs in robots.txt instead of returning 404 or 410.
  • Fixing the response but leaving broken internal links in place.
  • Using 404 for temporary server or rate-limit failures.
  • Removing the error page navigation or trapping users in a loop.

FAQ

What does 404 Not Found mean?

It means the server is reachable but cannot find a current resource at the requested URL.

Do 404 errors hurt SEO?

Normal 404s do not create a site-wide penalty. They matter when important pages disappear, internal links stay broken, or large error patterns waste users and crawl activity.

Should every 404 page be redirected?

No. Redirect only when a close replacement exists. A true 404 or 410 is correct when the resource is gone and no relevant substitute is available.

What is the difference between a 404 and a soft 404?

A true 404 returns the 404 status. A soft 404 presents missing or empty content while returning a success code or an irrelevant redirect.

How do you find broken 404 pages on a website?

Use an SEO crawler, server logs, Search Console, and checks of sitemaps and internal references. Prioritize URLs with traffic, links, or business value.

View all terms