Skip to content

Commit

Permalink
Merge pull request #352 from andrewandante/DOCS/allowed_error_codes_c…
Browse files Browse the repository at this point in the history
…hangelog

DOC add errorpage allowed_error_codes to 5.2.0 changelog
  • Loading branch information
GuySartorelli authored Sep 26, 2023
2 parents 67b2d8c + ce29174 commit 18b2e8d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions en/04_Changelogs/5.2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18b2e8d

Please sign in to comment.