All of the error templates live inside TwigBundle. To override the templates, we simply rely on the standard method for overriding templates that live inside a bundle.
All of the error template you'll find on TwigBundle. To see the full list of default error templates, see the
In your error500.html.twig page
<h1>Oops, you've found a dead link.</h1>
<h2>{{ exception.message|nl2br|format_file_from_text }}</h2>
Custom templates for 403, 404 and 500 errors, so i created
All of the error template you'll find on TwigBundle. To see the full list of default error templates, see the
Resources/views/Exception directory of the TwigBundle. In a standard Symfony2 installation, the TwigBundle can be found at vendor/symfony/src/Symfony/Bundle/TwigBundle. Often, the easiest way to customize an error page is to copy it from the TwigBundle into app/Resources/TwigBundle/views/Exception and then modify it.In your error500.html.twig page
<h1>Oops, you've found a dead link.</h1>
<h2>{{ exception.message|nl2br|format_file_from_text }}</h2>
Custom templates for 403, 404 and 500 errors, so i created
error.html.twig (parent template) and error403.html.twig, error404.html.twig and error500.html.twig that extends from 'TwigBundle:Exception:error.html.twig' (overridden by your custom parent template).