> For the complete documentation index, see [llms.txt](https://docs.shipped.club/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shipped.club/features/error-pages.md).

# Error pages

## Errors handling

When an error occurs on a page, the error is intercepted by an error route.

The page is defined by `src/app/error.tsx` and it renders the component `<PageError />`

<figure><img src="/files/b0p9QHIkXsDtGlQtjRe7" alt=""><figcaption><p>PageError component</p></figcaption></figure>

You can define specific error pages by adding an `error.tsx` file to a nested route, for instance inside the folder `src/app/dashboard/`

## Not Found

<figure><img src="/files/XJmFSN9wSccWuwqf4csf" alt=""><figcaption></figcaption></figure>

If a page route doesn't exist, the Not Found page is rendered.

Customize it by editing the file `src/app/not-found.tsx`

{% hint style="info" %}
Learn more about [Next.js Error Handling](https://nextjs.org/docs/app/building-your-application/routing/error-handling)
{% endhint %}
