Change record status: 
Project: 
Introduced in branch: 
8.3.x
Introduced in version: 
8.3.0
Description: 

This makes it possible to no longer have to write a method for every single possible HTTP 4xx status code. You can handle them all at once.

Rather than needing to implement on400(), on401(), on402(), and so on, you can just write on4xx().

See \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase.

Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done