Closed
Description
Let's create a single resource for anything related to "handling error responses". We could do this:
- Merge this when ready -> [Security] Clarify the purpose of access denied handler (and entry point) #14045
- Create a new article
How to Customize Error Responses
which merges https://symfony.com/doc/current/controller/error_pages.html and the article created in 1. - The new article should explain:
- How to quickly customize error pages (404, 500, etc.)
- How to customize the logic that handles error responses (401, 403, etc.)
- How to do everything in traditional HTML responses and (JSON) APIs too.