# 403 Access Denied

> 403 access denied page with a lock icon, an explanation of the missing permission, and Back To Dashboard plus Request Access actions.

A shadcn/ui block from the [@7ovr](https://7ovr.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/7ovr/error-4).

- Page, with a live preview: https://shadcn.exchange/r/7ovr/error-4
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/7ovr/error-4-light-af621ce21bdba5b4.png
- Registry item: https://7ovr.com/r/error-4.json
- Categories: error
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://7ovr.com/r/error-4.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `@base-ui/react`
- Registry items: `button`

## Notes from the registry

Requires a `base-*` style in components.json (the `shadcn init` default). Legacy `new-york`/`radix-*` styles install Radix primitives, which reject the `render` prop this block uses.

## Files

### `registry/blocks/error/4/error-block.tsx`

```tsx
import { Button } from "@/components/ui/button"
import { IconPlaceholder } from "@/components/icons/icon-placeholder"

export default function ErrorBlock() {
  return (
    <section className="flex min-h-svh w-full items-center justify-center bg-background px-6 py-16 text-foreground">
      <div className="mx-auto flex max-w-md flex-col items-center text-center">
        <span
          className="flex size-14 items-center justify-center rounded-lg border border-border bg-muted/40"
          aria-hidden="true"
        >
          <IconPlaceholder
            lucide="Lock"
            tabler="IconLock"
            hugeicons="LockIcon"
            phosphor="Lock"
            remixicon="RiLock2Line"
            className="size-6"
          />
        </span>
        <p className="mt-6 text-xs font-semibold tracking-widest text-muted-foreground uppercase">
          Error 403
        </p>
        <h1 className="mt-2 font-heading text-2xl font-bold tracking-tight sm:text-3xl">
          Access denied
        </h1>
        <p className="mt-3 text-sm text-pretty text-muted-foreground">
          You don&apos;t have permission to view this page. If you think this is
          a mistake, ask a workspace admin to grant you access.
        </p>
        <div className="mt-8 flex flex-col gap-3 sm:flex-row">
          <Button render={<a href="#" />} nativeButton={false}>
            <IconPlaceholder
              lucide="ArrowLeft"
              tabler="IconArrowLeft"
              hugeicons="ArrowLeftIcon"
              phosphor="ArrowLeft"
              remixicon="RiArrowLeftLine"
              data-icon="inline-start"
              aria-hidden="true"
            />
            Back to dashboard
          </Button>
          <Button
            render={<a href="#" />}
            nativeButton={false}
            variant="outline"
          >
            Request access
          </Button>
        </div>
      </div>
    </section>
  )
}
```
