-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EES-5562 Add custom error pages to public API docs
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/explore-education-statistics-api-docs/source/404.html.md.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Page not found | ||
hide_in_navigation: true | ||
prevent_indexing: true | ||
--- | ||
|
||
# Page not found | ||
|
||
If you typed the web address, check it is correct. | ||
|
||
If you pasted the web address, check you copied the entire address. | ||
|
||
If the web address is correct or you selected a link or button, [contact our explore education statistics team](/support/index.html) | ||
if you need any help or support. |
7 changes: 6 additions & 1 deletion
7
src/explore-education-statistics-api-docs/staticwebapp.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"trailingSlash": "auto" | ||
"trailingSlash": "auto", | ||
"responseOverrides": { | ||
"404": { | ||
"rewrite": "/404.html" | ||
} | ||
} | ||
} |