PSR7-Middlewares v3.16.1 Release Notes
Release Date: 2016-06-10 // almost 8 years ago-
ErrorHandler: added a
statusCode
option to filter the status code handled by the middleware. Example:Middleware::errorHandler('myHandler')-\>statusCode(function ($code) {return $code === 500; });