Marketing / 404 pages
Error page
Full pages for 404, 403, 500 and maintenance: a quiet mono code, then a tray with the request on its strip, a sentence on a raised card and the way on below.
Code
The component itself, ready to drop into your project. Switch between React, Vue and plain HTML; every version uses the same Tailwind classes on Ochre's tokens.
404
GET /northwind/projects/NW-118
Not found
This page isn't here
It may have moved, or the link has a typo. Check the address, or head back to somewhere you know.
Installation
Examples
No access
Type=No access: who owns it and who you're signed in as.
403
GET /northwind/roadmaps/q3
No access
You don't have access to Q3 roadmap
It's private to the Platform team. Ask Maya Shah to add you, or switch to an account that has access.
- Signed in as
- sam@halcyon.example
Server error
Type=Server error: a reference to quote and a retry.
500
POST /api/cycles/NW-42/close
Server error
Something went wrong on our side
We've been told and we're looking into it. Try again in a minute; nothing you were working on has been lost.
- Reference
- 7F3A-21C9
- Time
- 14:32:08 UTC
Maintenance
Type=Maintenance: when it started and when it's back.
503
GET /northwind
Maintenance
We're down for maintenance
We're upgrading the database. Your work is safe, and everything will be back shortly.
- Started
- 04:00 UTC
- Back by
- 06:00 UTC
Motion
Built on Ochre's ease-out curves. With reduced motion switched on, everything still works, it just doesn't move.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| type | "not-found" | "no-access" | "server-error" | "maintenance" | "not-found" | Type=Not found, No access, Server error or Maintenance. Sets the default code, status, title and sentence. |
| code / status | ReactNode | – | The quiet mono code (404) and the status on the tray strip (Not found). |
| request | ReactNode | – | What was asked for, in mono on the strip: GET /northwind/projects/NW-118. |
| title / description | ReactNode | – | What happened in a few words, and one sentence on what to do. |
| details | { label, value }[] | – | Mono rows under the sentence: a reference, the time, a maintenance window. |
| actions | ReactNode | – | The way on: one Primary button and one quiet one, on the tray below the card. |
| brand / footer | ReactNode | – | Your logo top left; a quiet line at the foot of the page. |
| fullHeight | boolean | true | Fills the viewport. Turn off to set your own height in a frame. |
| as | "main" | "div" | "main" | main for a page of its own; div inside a layout that already has one. |
Usage
Use it for
- Not found for missing pages and dead links; No access when someone is signed in but not allowed.
- Server error for unexpected failures, with a reference people can quote to support.
- Maintenance during planned downtime, with when it started and when it ends.
Avoid
- Jokes or illustrations that make people wait to find the way out.
- Blaming the reader. Say what happened and what to do next.
- Showing stack traces or internal ids beyond a short reference.