From ce2917464f19de9a856cd1295146c1c90840e1f2 Mon Sep 17 00:00:00 2001 From: Andrew Paxley Date: Tue, 26 Sep 2023 11:48:56 +1300 Subject: [PATCH] DOC add errorpage allowed_error_codes to 5.2.0 changelog --- en/04_Changelogs/5.2.0.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/en/04_Changelogs/5.2.0.md b/en/04_Changelogs/5.2.0.md index 6ea0cfa7b..b778b711e 100644 --- a/en/04_Changelogs/5.2.0.md +++ b/en/04_Changelogs/5.2.0.md @@ -7,12 +7,27 @@ title: 5.2.0 (unreleased) ## Overview - [Features and enhancements](#features-and-enhancements) + - [ErrorPage allowed codes configuration](#errorpage-allowed-codes-configuration) - [Other new features](#other-new-features) - [API changes](#api-changes) - [Bug fixes](#bug-fixes) ## Features and enhancements +### ErrorPage allowed codes configuration + +By default, all available error codes are present in the dropdown in the CMS. This can be overwhelming and there are a few (looking at you, 418) that can +be confusing. To that end, you can limit the codes in the dropdown with the config value `allowed_error_codes` like so: + +```yml +SilverStripe\ErrorPage\ErrorPage: + allowed_error_codes: + - 400 + - 403 + - 404 + - 500 +``` + ### Other new features ## API changes