Designing a 404 and Error Page That Keeps Visitors

You click a link, expecting a page, and instead you get a cold grey screen that says "404 Not Found" and nothing else. For a moment you wonder if you typed something wrong, then you shrug and hit the back button. That tiny moment of confusion happens millions of times a day across the web, and most of the time the visitor simply leaves. The page that caused it was almost certainly an afterthought, designed by no one and noticed by everyone at the worst possible moment.

Here is the thing most people miss: an error page is not a dead end, it is a fork in the road. Handled badly, it pushes a frustrated visitor straight out the door. Handled well, it catches them, reassures them, and points them somewhere useful. In this guide we will look at why error pages matter, what a great one actually contains, and how a few small design choices can turn a moment of frustration into a second chance.

What an error page really is

When you ask a website for something it cannot give you, the server replies with a status code. A 404 means "that page does not exist here." A 500 means "something broke on our end." These numbers are just the plumbing. What the visitor actually sees is whatever page you have chosen to show them when those codes come up. By default that page is bare and unfriendly, but you can replace it with something far better.

The key shift in thinking is to stop treating the error page as an apology for failure and start treating it as a navigation tool. The visitor wanted something. Your job, even now, is to help them get to it or to something close. That instinct sits at the centre of good website navigation generally, and an error page is simply navigation under pressure.

A dead end loses the visit; a helpful page saves it
Usability researchers note that a blank error screen offers no path forward, so most people abandon, while a guiding page recovers a meaningful share of those lost visits.
Source: Nielsen Norman Group

Why visitors land on error pages in the first place

It helps to understand how people end up here, because the reason shapes the fix. Some followed an old link from another site that points to a page you have since moved or removed. Some mistyped a web address. Some clicked an internal link that was never updated after a redesign. And some hit a genuine technical fault. Each of these is a person who wanted to reach you, not a problem to be hidden.

That framing matters. A visitor on a 404 is not necessarily lost forever. They were interested enough to click. The error page is your chance to honour that interest rather than waste it. The worst response is to make them feel stupid or stranded.

The hidden cost of ignoring error pages

Because error pages only appear at the edges, they are easy to overlook. No one demos the 404 page in a launch meeting. Yet over a year, a busy site can send a surprising number of visitors to it. If each of those people bounces, that is a steady leak of interested traffic, draining away unseen. Plugging that leak is one of the cheapest improvements you can make, because the traffic is already arriving.

The anatomy of a great error page

So what should actually be on the page? The best error pages share a handful of ingredients, and none of them are complicated. Start with a clear, human message that explains in plain language that the page could not be found, without technical jargon or blame. Then, and this is the important part, give people somewhere to go.

What to include on a 404 page, and why
Element Purpose Tone tip
Plain-language message Reassures the visitor nothing is broken on their side Friendly, never blaming
Search box Lets people find what they were after Prominent and obvious
Key links Routes to home, popular pages or products Limited, not a full menu dump
A touch of personality Softens the frustration and feels human Light, on-brand, not forced
Contact route Helps people who are truly stuck Quietly available, not pushy

Give people a way out

The single most important feature of any error page is a route forward. At a minimum, that means a clear link back to the homepage and a search box. Better still is a short list of your most useful or popular destinations, so the visitor can spot something relevant at a glance. Think of it as offering a few good doors rather than a single emergency exit.

Resist the temptation to simply paste your entire navigation menu onto the page. A wall of options is overwhelming when someone is already a little frustrated. A handful of carefully chosen links works better, the same way a clean, focused header and menu beats a cluttered one elsewhere on your site. Guide, do not flood.

A search box earns its place

If your site has a search feature, the error page is the perfect place to feature it. Someone who landed here was looking for something specific. A prominent search box hands them the steering wheel and lets them try again on their own terms. For content-heavy sites in particular, search can rescue visits that no list of links would have caught.

Tone matters more than you think

An error is a small moment of friction, and friction is exactly when tone matters most. A page that is warm and a little playful can defuse the frustration almost entirely. A friendly line, a light touch of humour, or a simple acknowledgement that this is annoying can turn a grimace into a small smile. People forgive sites that feel human.

That said, read the room. Humour should fit your brand and the situation. A playful 404 illustration suits many businesses; a payment error on a checkout page is not the place for jokes. The goal is reassurance, and reassurance can be warm without being silly. Whatever you choose, the page should still feel like the rest of your site, carrying the same professional polish as every other page.

Helpful beats clever
A beautiful error illustration is nice, but research on web usability is clear that visitors value a clear route forward far more than decoration when something has gone wrong.
Source: Nielsen Norman Group

Do not forget the other errors

The 404 gets all the attention, but it is not the only error worth designing. A 500 error, where something has genuinely broken on the server, deserves the same care. So does a maintenance page shown while you update the site. In each case the principle is identical: explain calmly what is happening, reassure the visitor it is not their fault, and offer a next step, even if that step is simply "try again in a few minutes."

Form errors deserve a mention too. When someone fills in a form incorrectly, the way you flag it is its own small error-design challenge. Clear, specific, friendly messages that point exactly to the problem keep people moving, which is why thoughtful web form design treats error states as a feature, not an afterthought.

Keep error pages fast and light

It is tempting to load an error page with a big animated illustration to soften the blow, and a little visual charm is fine. But remember that someone reaching an error is already a touch frustrated, and a slow, heavy page only makes it worse. Keep the page light so it loads instantly. The same speed discipline that helps your core web vitals applies here: a fast, calm page reassures, while a sluggish one compounds the annoyance.

Track and fix what sends people there

A great error page rescues visitors, but the best long-term fix is to send fewer people to it in the first place. Most analytics tools can show you which broken links are firing most often. Treat that report as a to-do list. If an old page is getting lots of hits, set up a redirect so visitors land on the right place automatically instead of seeing an error at all. Over time this quietly tightens up the whole site.

This kind of ongoing care is part of keeping a site healthy, much like the work covered in this guide to keeping a site fast and well-maintained. A good error page is your safety net, but fixing the broken links behind it is how you stop needing the net so often. If you would like help auditing where visitors are getting lost, that is an easy conversation to start through the contact page.

Bringing it together

An error page is one of those small details that quietly reveals how much a site cares about its visitors. Done as an afterthought, it loses people at the worst possible moment. Done with thought, it catches them, reassures them, and points them somewhere good. Give it a clear message, an honest route forward, a search box, a touch of warmth, and the same speed and polish as the rest of your site. A little attention to the page nobody plans to see can save a surprising number of visits that would otherwise simply disappear.

Frequently asked questions

What is the difference between a 404 and a 500 error?+
A 404 means the page the visitor asked for does not exist, often from a broken or mistyped link. A 500 means something went wrong on the server itself. Both deserve a friendly custom page that explains the situation calmly and offers a clear next step.
Should my 404 page be funny?+
A light, friendly tone often helps defuse frustration, but it should fit your brand and the moment. Humour suits a simple missing page; it is out of place on a checkout or payment error. Whatever the tone, always pair it with a clear route forward.
What should every error page include?+
At minimum: a plain-language message, a link home, and ideally a search box plus a few useful links. The aim is to give a frustrated visitor an obvious way to continue rather than leaving them stranded on a dead end.
How do I reduce how many people hit error pages?+
Use your analytics to find which broken links fire most often, then set up redirects so those addresses point to the right live page. Fixing the underlying broken links means fewer visitors ever reach an error in the first place.

References

  1. Nielsen Norman Group. "Error-Message Guidelines and Recovering Lost Users." nngroup.com.
  2. Google. "Custom 404 Pages and Soft 404 Best Practices." google.com.
  3. Mozilla. "HTTP Response Status Codes." mozilla.org.
Back to blog

AUTOMATE. OPTIMIZE. DOMINATE.

Streamline your operations and deliver a frictionless customer journey. Let our experts deploy cutting-edge tech and optimized workflows so you can focus on what you do best.