Technical SEO

Detect and remediate soft 404 errors in web applications

Ensure pages that show missing content or empty states return an authentic HTTP 404 status code. A soft 404 occurs when a server returns an HTTP 200 OK status code for a page that displays 'Item Not Found' or has empty search results, confusing search crawlers. Search features and crawler behavior change; validate current official guidance and avoid creating pages whose only distinction is a keyword or location substitution.

Search discovery and canonical intent

A soft 404 occurs when a server returns an HTTP 200 OK status code for a page that displays 'Item Not Found' or has empty search results, confusing search crawlers.

  • Define one canonical URL for each distinct user need
  • Keep technical signals consistent across HTML and sitemap
  • Verify outcomes in Search Console and raw responses

Implementation approach

Configure server routing to emit a genuine HTTP 404 status code whenever an item ID or slug does not exist in the database, rather than rendering an empty client-side template.

  • Confirm the responsible owner
  • Apply the change to a representative case
  • Document decisions and exceptions

Practical example

A URL /products/discontinued-sku that displays 'Product no longer available' while returning status 200 must be updated to return a 404 or a 301 redirect to the closest active category.

  • Reproduce the starting situation
  • Apply the described approach
  • Check the user-facing result

Verification and follow-up

Check the Page indexing report in Search Console for Soft 404 warnings, test status codes using HTTP header inspectors, and confirm crawlers deindex removed pages.

  • Test expected and failure cases
  • Compare with the recorded baseline
  • Agree the next review date and owner

Questions to keep in view

When should a team use this technical seo guide?

Ensure pages that show missing content or empty states return an authentic HTTP 404 status code.

What should be checked before rollout?

Check the Page indexing report in Search Console for Soft 404 warnings, test status codes using HTTP header inspectors, and confirm crawlers deindex removed pages.