Development of custom error pages is impractical if you need to set kernel.debug=false

Also see
https://github.com/symfony/symfony/issues/7446 and https://github.com/symfony/symfony/issues/1486