Files
mintlify__docs/customize/custom-404-page.mdx
mintlify[bot] f8e015ff62 Improve SEO descriptions across 177 pages (#4993)
* Improve SEO metadata: update descriptions to 130-155 chars across 177 pages

Generated-By: mintlify-agent

* Apply suggestion from @ethanpalm

* Apply suggestions from code review

Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>

* 💅

---------

Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2026-03-31 16:12:58 -07:00

42 lines
1.4 KiB
Plaintext

---
title: "Custom 404 page"
description: "Customize the title, description, and appearance of your documentation site's 404 error page to match your brand and guide visitors."
keywords: ["404 error page", "custom error pages"]
---
All 404 pages automatically suggest relevant pages based on the requested URL. If users land on a 404 page, an agent analyzes the path and retrieves semantically related pages from your documentation to help them find what they're looking for.
You can customize the title and description of the 404 error page. Use the description to add helpful links or guidance.
## Configuration
Configure your 404 page in the `errors.404` section of your `docs.json` file:
```json
"errors": {
"404": {
"redirect": false,
"title": "I can't be found",
"description": "What ever **happened** to this _page_?"
}
}
```
## Parameters
<ResponseField name="redirect" type="boolean">
Whether to automatically redirect to the home page when a page is not found.
Set to `true` to redirect to the home page.
Set to `false` to show the custom 404 page.
</ResponseField>
<ResponseField name="title" type="string">
Custom title for the 404 error page. This replaces the default "Page not found" heading.
</ResponseField>
<ResponseField name="description" type="string">
Custom description for the 404 error page. Supports MDX formatting including links, bold, italic text, and custom components.
</ResponseField>