$ composer require ctw/ctw-middleware-httpexception
jonathanmaron/ctw-middleware-httpexception
This PSR-15 middleware catches exceptions implementing "Ctw\Http\HttpException\HttpException\HttpExceptionInterface" and returns a custom error page.
PHPBSD-3-Clause