diff --git a/docs.json b/docs.json index e364b4726..cf95c506d 100644 --- a/docs.json +++ b/docs.json @@ -44,7 +44,8 @@ "pages", "navigation", "themes", - "settings/custom-domain" + "settings/custom-domain", + "settings/custom-404-page" ] }, { @@ -151,7 +152,6 @@ "guides/changelogs", "guides/hidden-pages", "settings/broken-links", - "settings/custom-404-page", "guides/monorepo", { "group": "Custom Subdirectory", diff --git a/settings/custom-404-page.mdx b/settings/custom-404-page.mdx index 916028a51..e3ced09f9 100644 --- a/settings/custom-404-page.mdx +++ b/settings/custom-404-page.mdx @@ -39,3 +39,22 @@ Configure your 404 page in the `errors.404` section of your `docs.json` file: Custom description for the 404 error page. Supports Markdown formatting. + +## API Error Response + +When a 404 error occurs in API requests, the response now includes additional error details in the response body: + +```json +{ + "errorType": "", + "errorMessage": "" +} +``` + + + The type of error that occurred. This field helps categorize the specific kind of 404 error. + + + + A descriptive message explaining the error. This provides more context about why the resource was not found. +