Browse
Design

A 404 page that doesn't feel like a dead end

Tell Claude about your site and its tone and get a 404 page as one HTML file that says what happened in plain words, guesses where the visitor wanted to go, and offers a search box and the main sections, with the copy written to match the brand.

No votes yet this week
Output
Image + Text
Written with
Claude Fable 5.1
Added

The prompt

Build a 404 page for my site as one HTML file, no frameworks.

Site: [NAME AND WHAT IT IS, e.g. Fern, a plant care app]
Tone: [e.g. playful and warm, calm and minimal, technical]
Main sections to link: [e.g. Home, Pricing, Help, Blog]
Brand colour and font if any: [HEX, FONT, or "your call"]
Common broken links, if I know them: [e.g. /pricing-old now lives at /pricing]
Is there a search? [yes, at /search?q=, or no]

The page should:
- Say in one plain sentence that there's nothing at this address, and show the path that failed (fill it in from window.location.pathname).
- Guess where the visitor wanted to go when it can: a short list of old paths mapped to new ones lives at the top of the script, and if the current path matches one, the page shows "you probably want [link]" above everything else.
- Offer a search field (if there's search) and the main sections as links. No sitemap dump.
- Match the tone. A playful brand can have an illustration made of CSS shapes and a joke in the headline, a minimal one gets a quiet headline and more space, a technical one gets monospace and a "report a broken link" button that opens an email with the path pre-filled.
- Return the real 404 status: add a comment at the top explaining how to serve this file with a 404 code on [Netlify, Vercel, nginx, or my setup].
- Work on a phone, with the headline readable without scrolling.

No "oops", no "looks like you're lost", no stock astronaut.
  • 404
  • html
  • ux-writing

What it generates

4 examples

NoteThis is an example. Results change between runs and model versions. Claude Prompts is a fan project and is not affiliated with Anthropic.

Getting the most from this prompt

Say what happened

A 404 page is the one page every site has that nobody designs, so most of them say "oops" and stop there. The visitor arrived with an intent, and a useful page tells them three things: the address doesn't exist, where they probably meant to go, and how to get there. The prompt bans the stock phrases because they're the sign that nobody thought about any of that.

The redirect list is the clever part

Most 404s on a real site come from a handful of old addresses: a renamed page, a moved blog post, a campaign link with a typo. The page keeps a short map of those at the top of its script and shows the right link when it recognises the path. Look at your analytics or server logs for the top broken addresses before you run the prompt and paste them in. Five lines there will catch most of your lost visitors.

Three tones, one structure

The three previews are the same prompt with a different tone line. The structure (sentence, failed path, guess, search, sections) stays the same; what changes is the headline, the amount of space and whether there's an illustration. Pick the one closest to your brand and describe it in the tone field, rather than asking for "something nice".

Serve it as a real 404

A pretty page that returns 200 teaches search engines that the broken address is a valid page. The comment at the top of the file shows how to attach it to a real 404 status on your host. Don't skip that step; it's the difference between a 404 page and a page that says 404.

How to use this prompt

  1. [01] Copy

    Copy the prompt

    Use the copy button above. The full text is included, nothing is cut off.

  2. [02] Fill in

    Replace the yellow parts

    Everything highlighted in yellow is a placeholder. Swap it for your own topic, audience or data.

  3. [03] Vote

    Run it in Claude and vote

    If the result helped, press the heart. Votes decide which prompts make the weekly top 10.

More like this

All design prompts
Image outputA landing page hero for a parcel tracking app, with a bold headline, a signup button and an illustrated parcel card

One file landing page hero

A complete, responsive hero section in a single HTML file. No frameworks, no images, ready to paste into a site or build on.

Image outputA set of twelve line icons on a light grid, each labelled: home, search, settings, calendar, chat, bell and more, all with the same stroke weight

An icon set in one consistent style

Name the actions in your app and get a matching set of line icons as SVG, all on the same grid with the same stroke, so they look like they belong together.

Learn the technique

All articles
2 min read

How the weekly ranking works

One vote per prompt, a fresh count every Monday, and a simple tie-break. Everything about how prompts reach the top three, in plain words.