In my Symfony2 project I\'m getting at development mode correct 404 Exception screen. But I\'m getting blank screen with HTTP status code 500 instead of 404 at production mo
Just an complementary note to the given answers: The ResourceNotFoundException can also be thrown if you are trying to include a non existent template. A typical case, is that you refactored your application code but you forgot to update your error pages as they are located in app/Resources and not in your src/ folder or including a given template that use a variable or service that is not defined in the "error" context.