Veil UI
Components

500 Page

A server error page with diagnostics and recovery actions.

Installation

$ npx veil-ui@latest add error-500-page

Usage

import { Error500Page } from "@/components/ui/error-500-page";

<Error500Page />;

Examples

Basic

500

Something broke on our side

The server hit an unexpected error while rendering this page. Our team has been notified — you can retry or check the status page.

ERR_500_INTERNALIncident open
Error details
Request ID: 8f3c2a91-4e2b-42d1
Timestamp: 2026-10-29T14:08:22Z
Route: /dashboard/reports

API reference

The package exports error-500-page along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.

Accessibility

  • Page templates use semantic landmarks and a single page-level heading.
  • Navigation links and actions have discernible names and visible focus styles.
  • Decorative imagery uses empty alt text; content images carry descriptions.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add error-500-page --framework vue or switch the framework in components.json.

<template>
<div data-slot="error-500-page" class="relative flex flex-col items-center justify-center overflow-hidden rounded-xl border bg-background px-6 py-16 text-center min-h-[600px]"><div aria-hidden="true" class="pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_center,var(--color-destructive),transparent_65%)] opacity-10"></div><div class="relative"><span class="flex size-14 items-center justify-center rounded-2xl border border-destructive/30 bg-destructive/5 text-destructive shadow-sm"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-server-crash size-7" aria-hidden="true"><path d="M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2"></path><path d="M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2"></path><path d="M6 6h.01"></path><path d="M6 18h.01"></path><path d="m13 6-4 6h6l-4 6"></path></svg></span><p class="mt-8 text-7xl font-semibold tracking-tighter sm:text-8xl">500</p><h1 class="mt-3 text-2xl font-semibold tracking-tight">Something broke on our side</h1><p class="mx-auto mt-2 max-w-md text-sm text-muted-foreground">The server hit an unexpected error while rendering this page. Our team has been notified — you can retry or check the status page.</p><div class="mx-auto mt-5 flex max-w-md flex-wrap items-center justify-center gap-2"><span data-slot="badge" data-variant="outline" class="inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 font-medium transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [&amp;&gt;svg]:pointer-events-none [&amp;&gt;svg]:size-3 text-foreground font-mono text-xs">ERR_500_INTERNAL</span><span data-slot="status-indicator" data-status="busy" class="inline-flex items-center gap-1.5 text-xs text-muted-foreground"><span class="relative flex size-2" aria-hidden="true"><span class="relative inline-flex size-2 rounded-full bg-red-500"></span></span>Incident open</span></div><div class="mt-6 flex flex-wrap items-center justify-center gap-3"><button data-slot="button" data-variant="default" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 bg-primary text-primary-foreground hover:bg-primary/90 h-9 px-4 py-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw" aria-hidden="true"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path><path d="M8 16H3v5"></path></svg> Try again</button><a href="#home" data-slot="button" data-variant="outline" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-9 px-4 py-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-house lucide-home" aria-hidden="true"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg> Go home</a><a href="#back" data-slot="button" data-variant="ghost" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 hover:bg-accent hover:text-accent-foreground h-9 px-4 py-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg> Go back</a></div><div class="mx-auto mt-8 w-full max-w-md text-left"><figure data-slot="code-block" class="overflow-hidden rounded-lg border bg-muted/40"><figcaption class="flex items-center justify-between gap-3 border-b px-3 py-1.5"><span class="truncate font-mono text-xs text-muted-foreground">Error details</span></figcaption><pre class="overflow-x-auto p-4 text-sm leading-relaxed"><code class="font-mono">Request ID: 8f3c2a91-4e2b-42d1
Timestamp: 2026-10-29T14:08:22Z
Route: /dashboard/reports</code></pre></figure></div><div class="mt-6 flex flex-wrap items-center justify-center gap-4 text-sm text-muted-foreground"><a href="#status" class="inline-flex items-center gap-1.5 underline-offset-4 hover:text-foreground hover:underline"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-life-buoy size-4" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="m4.93 4.93 4.24 4.24"></path><path d="m14.83 9.17 4.24-4.24"></path><path d="m14.83 14.83 4.24 4.24"></path><path d="m9.17 14.83-4.24 4.24"></path><circle cx="12" cy="12" r="4"></circle></svg>Status page</a><a href="#support" class="inline-flex items-center gap-1.5 underline-offset-4 hover:text-foreground hover:underline"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square size-4" aria-hidden="true"><path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"></path></svg>Contact support</a></div></div></div>
</template>

On this page