Server Error Record
500 error screen: a parenthetical eyebrow, a display headline, a retry pill-button beside a status-page link, and a ruled two-column record listing Reference, Timestamp, Subsystem, and State as labeled rows, useful to paste into a support request.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/server-error-record.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/error/error21.tsx instead.
Usage
The file also exports error21Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Error21, error21Demo } from "@/components/blocks/error/error21"; export default function Page() { return <Error21 {...error21Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "(error)" | Small parenthetical label above the headline. |
| heading | ReactNode | "500. Something broke on our end." | Display headline. |
| description | string | undefined | Supporting copy under the headline. |
| retryLabel | string | "Retry" | Label on the retry pill-button. |
| retryHref | string | "#" | Link target for the retry button. |
| statusLabel | string | "Status page" | Label for the status-page link. |
| statusHref | string | "#" | Link target for the status-page link. |
| record | RecordRow[] | none | Labeled rows (e.g. Reference, Timestamp, Subsystem, State) shown in the ruled record. |
| className | string | none | Extra classes for the outer section element. |
Types
type RecordRow = { label: string; value: string };
Behavior notes
- Entirely static/server-rendered: "Retry" and "Status page" are both plain next/link navigation via Button's render prop, not a real retry probe or live status feed.
- The incident record rows are static demo data, not a live error report.
More Error Blocks
View all →centered-404-message
Centered 404 Message
Minimal centered 404 with two CTAs and a divided row of popular page links.
404-with-site-search
404 With Site Search
404 screen with a working search box and a bordered list of suggested pages.
split-404-with-image
Split 404 With Image
Two-column 404 with the message on one side and a full-bleed photo that scales on hover on the other.
404-with-destination-cards
404 With Destination Cards
404 screen with a grid of icon destination cards plus fallback CTA buttons.
404-support-panel
404 Support Panel
Card-style 404 echoing the requested URL, with a real back button and a support/status link row.
inline-404-line
Inline 404 Line
The smallest possible 404: code and message on one divided line with one button underneath.