Configuration
Configure your custom 404 page in theerrors.404 section of your docs.json file:
Parameters
Whether to automatically redirect to the home page when a page is not found. Set to
false to show the custom 404 page instead.Custom title for the 404 error page. This replaces the default “Page not found” heading.
Custom description for the 404 error page. Supports Markdown formatting for styling text with bold, italic, and links.
Examples
Basic custom 404
Branded 404 with helpful links
Playful 404 with formatting
Auto-redirect (no custom page)
Best practices
- Keep titles concise - Aim for 2-8 words that clearly communicate the error
- Provide helpful next steps - Include links to your homepage, documentation, or support
- Match your brand voice - Use language that fits your product’s personality
- Use Markdown sparingly - Bold and italic text can help emphasize key information
- Test your links - Ensure any links in your description work correctly
Markdown support
Thedescription field supports standard Markdown formatting:
- Bold text with
**bold** - Italic text with
_italic_ - Links with
[text](/path) Inline codewith backticks
Complex Markdown features like headers, lists, and code blocks are not supported in 404 descriptions.