I am using Symfony 2.7.4 and I want to create custom error page for 404 code. I created file
/Resources/TwigBundle/views/Exception/404.html.twig
as it is described on http://symfony.com/doc/current/cookbook/controller/error_pages.html#use-default-exception-controller
But if I enter nonexisting URL it leads to the error 500 internal server error (without 404.html.twig it leads to 404 not found error with default look). How to fix it?