Meaning and context

A 404 answers a question about one address. Your website can be running perfectly while a visitor lands on a URL that no longer exists. The first thing to find out is whether that URL should still work. A mistyped link, an accidental deletion and a retired service can produce the same response but call for three different fixes.

Read the response behind the design

The text a visitor sees and the status the server sends are separate. You can design a friendly error page with navigation, search and a link to customer support while returning a genuine 404. Check the document request in your browser’s network panel. A screen that says “page missing” while sending a successful 200 response can be treated as a soft 404 by Google.

Decide whether the old page has a successor

Imagine a pottery studio removes a page for a one-off workshop. A visitor follows a link from last year’s newsletter. If the studio has published a recording and materials for that exact workshop, the old page could become a useful archive. If the same workshop permanently moved to another URL, a 301 redirect can take the visitor there.

If the event is gone and no equivalent exists, returning a 404 makes sense. Offer a link to the class calendar on the error page so visitors can decide what to do next. Sending everyone straight to the calendar would make it harder to tell whether they had found the event they originally wanted.

Use the report to prioritize repairs

Start with missing URLs that still appear in menus, popular guides, booking emails or your XML sitemap. Follow the referring link to find where it is published. If a popular article includes an extra letter in a workshop URL, correct that link at the source. If the deleted page still belongs in the sitemap, investigate whether someone removed it by mistake before taking it out.

A useful repair log records the broken link, the page that contains it and the intended destination. That makes it possible to fix the next occurrence in the template rather than editing dozens of pages individually.

Common questions

Will a few 404s hurt the rest of my site?

A missing page is an expected part of the web. Investigate what the errors mean for visitors and which resources are affected. One retired event and an entire catalog returning 404 after a migration deserve very different levels of attention.

How do I test a custom error page?

Open a made-up address on your own domain. Check that the server returns 404, the message makes sense on mobile and the suggested links work. Then repeat the test with a real missing URL from your report. Some sites handle unknown paths and deleted database records through different templates.

Sources & further reading

Examples are illustrative unless a source is explicitly identified. Platform features and reporting definitions can change.

Back to the glossaryPut it into practice