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
ResourceNotFoundException is what the router throw when no route match the current request.
This can be a cache issue (80% of the time, it's the cache. Try rm -rf app/cache/* on your pre-production server). As the issue does not appear locally... (you tried the "prod" env locally right?).
You should also try to remove everything from your app/Resources/TwigBundle/views/Exception/error404.html.twig (is that the filename you use?) except simple HTML, to check if it's not a twig issue.