404 page design: what to put on the page.
A good 404 page says plainly that nothing is at this address, gives one likely reason, and offers one or two ways out: home, and the place most people were looking for. Keep it small and calm, in the same look as the rest of the site, and make sure the server sends a real 404 status, not a 200. A small illustration of the missing page tells people what happened before they read a word.
What a 404 page needs
- A heading that says what happened: "There is nothing at this address" or "We couldn't find this page". Not "Oops", and not a joke the visitor has to decode.
- One line on why: the link may be old, or the page may have moved.
- One or two ways out. Home, plus the page most people were after, such as the docs, the library or search.
- A small illustration of a missing page, in the same style as the rest of the site.
- A real 404 status from the server, so search engines drop the address.
Leave out everything else. Nobody chose to land on this page. Every extra link or paragraph is one more thing to read before they find the way out.
The words, vague and clear
| Vague | Clear | |
|---|---|---|
| Heading | Oops, something went wrong | There is nothing at this address |
| Line | Sorry about that. | The link may be old, or the page may have moved. |
| Buttons | Go back | Back home, and one link to the main index |
"Something went wrong" doesn't say whether the page is missing or the server is down, and those need different next steps. A missing page needs a way to somewhere else. A page that failed to load needs Try again.
The 404 page on illos.dev
Open an address that doesn't exist on illos.dev and the heading reads "There is nothing at this address". The line under it says the link may be old or the illustration may have moved, and that everything published is in the library. Then two buttons: Browse the library, the main one, and Back home.
The page drops the site's menu and footer. It keeps the logo and a close button at the top, and a small moving Shader field above the heading. With nothing else on the screen, the way out is easy to find.
Send a real 404 status
A page that says "not found" but answers with status 200 is what Google calls a soft 404, and Search Console lists it under that name. Check what your server sends with curl. This is illos.dev, for a made-up address:
curl -sI https://illos.dev/library/isometric/no-such-page | head -1 HTTP/2 404
Run the same line against a made-up address on your own site. If the first line says 200, the not found page is going out as a normal page. Fix that before you design anything.
Add a 404 page to a Next.js app
In the App Router, app/not-found.tsx is the page Next.js shows for an address that matches no route, and when your code calls notFound(). Add the illustration first:
npx shadcn@latest add https://illos.dev/r/flat/page-not-found.json
That adds Page not found as a React component, IllosPageNotFound. Put it above the heading:
import Link from "next/link";
import { IllosPageNotFound } from "@/components/illos/page-not-found";
export default function NotFound() {
return (
<main className="mx-auto flex max-w-md flex-col items-center gap-3 py-24 text-center">
<IllosPageNotFound className="w-72" />
<h1 className="text-2xl font-medium">There is nothing at this address</h1>
<p className="text-muted-foreground">
The link may be old, or the page may have moved.
</p>
<div className="flex gap-4">
<Link href="/docs">Browse the docs</Link>
<Link href="/">Back home</Link>
</div>
</main>
);
}The illustration plays once when it scrolls into view and loops while hovered. People who turn on reduced motion in their system settings see a still. Deploy, then run the curl check again.
On a static site
GitHub Pages, Netlify and Cloudflare Pages serve a file named 404.html from the root of the site when an address has no page. Copy the SVG from the illustration's page, save it next to 404.html and load it as an image:
<img src="/page-not-found.svg" alt="" width="360" height="230" /> <h1>There is nothing at this address</h1> <p>The link may be old, or the page may have moved.</p> <a href="/">Back home</a>
Leave the alt text empty when the heading beside it says the same thing. The SVG follows the visitor's light or dark setting by itself.
Picking the illustration
Show the thing that is missing, not a mascot. The free Page not found illustration from Illos is a browser window on a missing page: a cursor clicks home and the homepage loads, then clicks back and the old link shows the missing page again. Ask the Illos MCP server for a "404 page not found", free only, and this is the first match:
- Page not found (id: page-not-found; Interface, spot, Free): on a 404 page, home leads out, and back returns to the missing page. Page: https://illos.dev/library/interface/page-not-found Add: npx shadcn@latest add https://illos.dev/r/flat/page-not-found.json
Error loading page fits a screen that failed to load, and Report unavailable a link inside an app to something that was removed. The Shader 404 comes with Pro. Empty state illustrations for web apps has the words for those screens, and the empty states page collects error screens from every theme.
A 404 page is not an error page
A missing page and a failed page need different words. When the page exists but didn't load, say so and offer Try again. On illos.dev that screen reads "This page did not load", with Try again and Back home. It should go out with a 500 or 503 status, not a 404, because the address is fine.
Questions
Anything else? Write to hello@illos.dev.
What should a 404 page say?
That nothing is at this address, one likely reason (the link is old or the page moved), and one or two ways out, such as home and the docs or search.
Should a 404 page redirect to the homepage?
No. Sending every missing address to the homepage hides the problem from the visitor, and Google treats it as a soft 404. Show the 404 page with a link home. Redirect only a page that moved, to its new address.
Do 404 pages hurt SEO?
A 404 for an address that never existed or was removed is normal. Make sure the server sends status 404, not 200, so search engines drop the address.
Is the Page not found illustration free?
Yes. Page not found, Error loading page and Report unavailable are free for personal and commercial work, with no credit and no account.







