Ranksphere logo
Marketing glossary
Technical SEO

404 Error

A 404 error is the HTTP status code returned when a requested page does not exist. It is a normal and correct response for genuinely removed content. A soft 404 is different — a page that returns a success code but has no real content, which Google treats as a problem.

By RanksphereUpdated October 11, 2026
404 Errors and How to Fix Broken Pages

A 404 error, also called HTTP 404 Not Found, is an HTTP status code indicating that the server cannot find the requested webpage or resource. It commonly appears when a URL is incorrect, a page has been deleted, or content has moved without a redirect.

A 404 response does not necessarily mean the page is permanently gone. It simply indicates that the requested resource is unavailable at that address.

For SEO, a 404 is not automatically a problem. Returning the correct status code is often the appropriate way to handle content that no longer exists.

Are 404 errors bad for SEO?

404 Errors, Soft 404s and Redirect Best Practices
Infographic explaining true 404 errors, soft 404s and when to use a 301 redirect or noindex. It also covers common 404 mistakes, technical SEO best practices and how to handle removed, moved or unavailable pages correctly.

No. A normal 404 error does not automatically harm your website's search rankings.

Google expects websites to contain some URLs that no longer exist. Pages are removed, products are discontinued, and website structures change.

According to Google Search Central's 404 guidance, 404 errors generally do not affect the search performance of the rest of a website.

However, a 404 becomes a problem when an important page returns the error unexpectedly.

Examples include:

  • A service page that should still be available.
  • An internal link pointing to a deleted URL.
  • A previously ranking page that was moved without a redirect.
  • A page with useful backlinks that now leads to an error.
  • A website migration that leaves important URLs inaccessible.

When Google crawls a URL that returns a genuine 404, that URL is not eligible for normal indexing. If it was previously indexed, Google's systems can remove it from search results.

The distinction matters: a correctly removed page is not an SEO failure, but an important page disappearing unintentionally deserves investigation.

When should a page return a 404?

A 404 is appropriate when a requested resource does not exist and there is no relevant replacement.

Typical examples include:

  • A URL that never existed.
  • A page deleted without a replacement.
  • A discontinued product with no suitable alternative.
  • An expired listing that should no longer be publicly available.
  • A mistyped URL.

For example, if a plumbing company permanently removes an old promotional page and has no equivalent offer, returning a 404 is reasonable.

There is no need to redirect visitors to an unrelated page simply to avoid the error.

However, if the original content still exists at a different address, a redirect is usually more appropriate.

404 vs. soft 404: What's the difference?

A 404 error and a soft 404 are not the same.

A standard 404 returns the correct HTTP status code, telling browsers and search engines that the requested resource cannot be found.

A soft 404 occurs when a URL appears to contain missing, empty, or unavailable content but does not return an appropriate error status.

For example, a website might display:

"Sorry, this page does not exist."

while its server returns:

200 OK

The response suggests the request succeeded, even though the content says otherwise.

Google may also classify redirects to unrelated destinations as soft 404s.

Common causes of soft 404s

  • Custom error pages that incorrectly return 200 OK.
  • Pages containing little or no usable main content.
  • Empty search results or category pages.
  • Important content failing to load because of rendering errors.
  • Redirects to irrelevant pages, including generic homepage redirects.

A short page is not automatically a soft 404. The issue is whether the content and response accurately represent a working, useful resource.

Google explains these situations in its documentation on troubleshooting crawling errors.

404 vs. 410 vs. 301 redirect

These HTTP responses serve different purposes.

StatusMeaningWhen to use it
404 Not FoundThe requested resource is unavailable.The URL does not exist or has no suitable replacement.
410 GoneThe resource is no longer available and its removal is expected to be permanent.You want to explicitly indicate permanent removal.
301 Moved PermanentlyThe resource has permanently moved to another URL.A new, relevant page replaces the original URL.

Google currently treats 404 and 410 responses similarly for indexing purposes. Using 410 is not necessary just because a deleted page will never return.

A 301 redirect is preferable when the old content has a meaningful replacement.

For example:

/services/old-roof-repairs/

could permanently redirect to:

/services/roof-repair/

if the new page covers the same service.

Redirecting the old URL to a generic homepage would not provide the same useful experience. Google may interpret an unrelated redirect as a soft 404.

How to find and fix 404 errors

The appropriate fix depends on whether the missing content should still exist.

1. Check Google Search Console

Open Google Search Console and navigate to the Page indexing report under Indexing → Pages.

Look for:

  • Not found (404)
  • Soft 404

These reports identify URLs Google has encountered and classified under those conditions.

Use URL Inspection to examine an individual URL and determine whether the issue is still present.

2. Decide whether the URL should exist

Review the affected page before changing anything.

  • If the page was removed intentionally and has no replacement, keep the correct 404.
  • If the content moved permanently, add a 301 redirect to its relevant replacement.
  • If the original page should still exist, restore it and ensure it returns 200 OK.
  • If the URL was never valid and has no important links or traffic, no action may be necessary.

Avoid redirecting every missing URL to the homepage.

If your website links to a missing page, update that link to the correct destination or remove it when appropriate.

For example:

Homepage → Deleted service page → 404

should be corrected to point directly to the active service page.

Internal link problems frequently appear after content removals, redesigns, and migrations.

An old URL may still receive visits or external links from relevant websites.

Check whether these links point to content with a suitable replacement.

Where a replacement exists, a permanent redirect can help visitors reach the right information and allow Google to process the move.

5. Investigate soft 404s separately

If Google reports a soft 404 on a page that should be live, check whether its primary content loads correctly.

Review the page's HTTP response, rendered content, JavaScript errors, and redirects.

If the page is intended to be available, it should return a successful response and provide meaningful content.

What makes a good custom 404 page?

A custom 404 page should explain the problem and help visitors continue using the website.

Useful elements include:

  • A clear message that the requested page cannot be found.
  • A link to the homepage.
  • Links to relevant services, categories, or resources.
  • A search feature, when available.
  • Consistent site navigation.

The page must still return a genuine 404 Not Found HTTP status, even when the design looks like a normal webpage.

A visually helpful error page that returns 200 OK can create a soft 404 problem.

Do 404 errors affect Google indexing?

Yes, but only in relation to the unavailable URL.

When Google encounters a genuine 404, it understands that the requested content is not available for indexing. If the page was previously indexed, Google can remove it after processing the error.

This is expected behavior for intentionally removed content.

You generally should not block these URLs using robots.txt. Allowing Google to crawl them helps it recognize their actual HTTP status.

If a page is supposed to remain in Google's index, however, it needs to return a successful response, be crawlable, and contain indexable content.

For a broader explanation, see indexing.

Frequently asked questions

Should you fix every 404 error?

No. Prioritize broken internal links, important deleted pages, migration errors, and URLs with meaningful traffic or backlinks. A random invalid URL with no value may not require action.

Should you redirect all 404s to the homepage?

No. Use a permanent redirect only when the destination is a genuinely relevant replacement. Unrelated redirects can confuse visitors and may be classified as soft 404s.

Is a 410 better than a 404 for SEO?

Not necessarily. A 410 more explicitly indicates permanent removal, but Google currently handles both codes similarly for indexing. A correct 404 is sufficient for many permanently deleted URLs.

A custom error page returning a genuine 404 is not eligible for normal indexing. If the page incorrectly returns 200 OK, Google may classify it as a soft 404 and exclude it.

Start improving your local visibility today.

14-day free trial · no credit card · connect Google Business Profile in 90 seconds and get your first AI insights before your coffee cools.

14-day free trialNo credit cardCancel anytime