ui-kit0.0

Blocks

404 & 500

Friendly error pages.

404, page not found

A calm illustration drawn from plain shapes, the path that failed, a search box and a way home. Searching filters the popular pages below; an empty search shows a message under the field instead of doing nothing.

500, server error

Says plainly that the fault is on our side, offers a retry and a way out, and gives an error ID with a copy button for support. In this demo the first retry still fails and the second recovers.

500 · Server error

Something went wrong on our side

It’s not you. Our servers hit an unexpected error and couldn’t load this page. We’ve been alerted and are already looking into it.

Error ID
err_7f3a91c2e04b
Time
2026-11-25 14:32:08 UTC

Contacting support? Include the error ID so we can find what happened. System status

Using them in Next.js

  • 404: render the block from app/not-found.tsx. Replace the hard-coded path with the requested one if you have it.
  • 500: render it from app/error.tsx (a client component) and call the reset() it receives from Try again. Show error.digest as the error ID.
  • Keep the HTTP status right: not-found.tsx returns 404 for you; don’t render a 404 block with a 200 status.

When to use

  • Full-page errors: a missing route, a crashed page, a failed server render.
  • Not for: a failed widget inside a working page (use an Alert or an empty state in place), or an empty list (use Empty state).

Writing

  • Say what happened in plain words, whose fault it is, and what to do next. No jokes about broken robots when someone is blocked.
  • Lead with the code in small mono type; the heading is the human sentence.
  • Always give two ways forward: one primary (home or retry) and one secondary (search or support).

Accessibility

  • The illustrations are decorative (aria-hidden); the heading carries the meaning.
  • The search form is a role="search" landmark, the input has an accessible name and errors are announced.
  • Retry results are announced through a status region; when the page recovers, focus moves to that message.