> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-mintlify-add-hello-world-quickstart-48843.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 自定义 404 页面

> 自定义 404 错误页面的标题与描述

当用户访问失效或不存在的链接时，你可以自定义显示的 404 错误页面的标题与描述。

在自定义 404 页面时，可利用描述引导用户前往文档中的相关资源或链接，帮助他们快速找到所需内容。

<div id="configuration">
  ## 配置
</div>

在 `docs.json` 文件的 `errors.404` 部分配置 404 页面：

```json
"errors": {
  "404": {
    "redirect": false,
    "title": "找不到我了",
    "description": "这个 _页面_ 到底**怎么了**？"
  }
}
```

<div id="parameters">
  ## 参数
</div>

<ResponseField name="redirect" type="boolean">
  当页面不存在时，是否自动重定向到首页。

  设为 `true` 将重定向到首页。

  设为 `false` 将显示自定义的 404 页面。
</ResponseField>

<ResponseField name="title" type="string">
  自定义 404 错误页面的标题。将替换默认的“Page not found”标题。
</ResponseField>

<ResponseField name="description" type="string">
  自定义 404 错误页面的描述。支持 Markdown 格式。
</ResponseField>
