Guide

What Is a 404 Error and How Should You Handle It on Your Website?

A 404 error is an HTTP status code that means the server could not find the page the user requested. It stands for "Not Found" in the HTTP specification and is one of the most recognisable error codes on the web. Users encounter 404 pages when they follow a broken link, mistype a URL, or try to access a page that has been moved or deleted.

Every website will have some 404 errors — they are an inevitable part of how the web works. The question is not how to eliminate them entirely, but how to handle them gracefully. A well-designed 404 page can recover a confused visitor and keep them on your site. A neglected one loses them entirely.

What Causes 404 Errors

The most common cause is a URL that once existed but has been deleted, renamed, or restructured. When you redesign a website and change the URL structure without setting up redirects, every old URL that was indexed in Google, shared on social media, or linked from other sites becomes a 404. Other causes include typos in links, case-sensitive URL mismatches, and content management system issues where page slugs change unexpectedly.

External links pointing to your 404 pages are particularly harmful — you receive a referral from another site but immediately lose the visitor. Internally linking to a 404 page wastes PageRank — the ranking signal that passes through internal links — on a dead end rather than a live page. Regular link audits help catch both internal and external broken links before they become problems.

The SEO Impact of 404 Errors

A 404 response itself is not a penalty — Google understands that pages get removed. The problem is opportunity cost. If a valuable page returns a 404, any backlinks pointing to it are wasted. If the page previously ranked for relevant keywords, that visibility is lost. Google will eventually remove the URL from its index, but in the meantime users who click search results for that URL will encounter your error page.

The best remedy for an important page that has moved or been renamed is a 301 redirect from the old URL to the most relevant existing page. This preserves the old page's link equity and organic traffic. Google Search Console's Pages report will show you which of your URLs are returning 404 errors, allowing you to prioritise which ones need redirects.

Designing a Useful 404 Page

Your 404 page should acknowledge the error clearly without jargon, apologise briefly, and then give the visitor somewhere to go. At minimum, include links to your homepage and your most important sections. A search box is excellent if your site has one — it lets visitors find what they were looking for without needing to know its exact URL.

Keep the design consistent with the rest of your site so visitors know they are still in the right place. A bare server error page is disorienting; a branded 404 page that matches your design reassures visitors and provides navigation options. Some businesses add personality to their 404 pages with humour or illustration — if it suits your brand, a memorable 404 page can turn a frustrating moment into a positive brand impression.

FAQs

Common questions.

Should I redirect all 404 pages to the homepage?
No. Redirecting all 404s to the homepage is a poor practice known as a "soft 404." Google recognises when a redirect leads to a page that is not genuinely relevant to the original URL and may treat the redirect as a 404 anyway. Only redirect to a page that is genuinely relevant to the URL that no longer exists.
Is a 404 error the same as a soft 404?
No. A true 404 returns an HTTP 404 status code, clearly telling browsers and search engines the page does not exist. A soft 404 is a page that returns a 200 success code (meaning the server thinks it served a valid page) but actually shows an error message or irrelevant content. Soft 404s are harder for search engines to handle and can lead to those pages being indexed incorrectly.
How do I find 404 errors on my website?
Google Search Console is the best starting point — the Pages report under Indexing shows all URLs returning 404 errors that Google has discovered. Screaming Frog can crawl your site and identify all internal links pointing to 404 pages. Google Analytics can also be configured to track 404 page visits so you can see how often visitors encounter them.
Related guides

More on web design & ux.

Want a hand putting this into practice?

Book a free, no-obligation consultation with a Norwich-based specialist.

Book a free consultation
Get started

Let's put your business in a better light.

Book a free, no-pressure consultation. We'll talk through your goals and tell you honestly what we'd do — whether you work with us or not.

  1. 01
    Tell us a bitFill in the form — two minutes, tops.
  2. 02
    We'll call you backWithin one working day, no pressure.
  3. 03
    Get a clear planHonest advice and a fixed quote.

Free · No obligation · We reply within one working day

Book a free consultation