Staaarter

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.

By Staaarter Team
Error
Docs
Live preview

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.json

Prefer 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

PropTypeDefaultDescription
eyebrowstring"(error)"Small parenthetical label above the headline.
headingReactNode"500. Something broke on our end."Display headline.
descriptionstringundefinedSupporting copy under the headline.
retryLabelstring"Retry"Label on the retry pill-button.
retryHrefstring"#"Link target for the retry button.
statusLabelstring"Status page"Label for the status-page link.
statusHrefstring"#"Link target for the status-page link.
recordRecordRow[]noneLabeled rows (e.g. Reference, Timestamp, Subsystem, State) shown in the ruled record.
classNamestringnoneExtra 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.