Buenas,
Al intentar acceder a una url que no existe me sale un error 500 en lugar de un 404.
El log de error es este:
[2017-04-20 16:56:20] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHtt pException: "No route found for "GET /fjdskjkldssd"" at /vagrant/proyectos/proy/app/cache/dev/classes.php line 2107 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFou ndHttpException(code: 0): No route found for \"GET /fjdskjkldssd\" at /vagrant/proyectos/proy/app/cache/dev/classes.php:2107, Symfony\\Component\\Routing\\Exception\\ResourceNo tFoundException(code: 0): at /vagrant/proyectos/proy/app/cache/dev/appDevDebugProjectContainerUrlMatcher.php:3316)"} []
[2017-04-20 16:56:20] request.CRITICAL: Exception thrown when handling an exception (Symfony\Component\Routing\Exception\ResourceNotFo undException: at /vagrant/proyectos/proy/app/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 3316) {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\ResourceN otFoundException(code: 0): at /vagrant/proyectos/proy/app/cache/dev/appDevDebugProjectContainerUrlMatcher.php:3316)"} []
[2017-04-20 16:56:20] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Routing\Exception\ResourceNotFou ndException: "" at /vagrant/proyectos/proy/app/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 3316 {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\ResourceN otFoundException(code: 0): at /vagrant/proyectos/proy/app/cache/dev/appDevDebugProjectContainerUrlMatcher.php:3316, Symfony\\Component\\HttpKernel\\Exception\\NotFoun dHttpException(code: 0): No route found for \"GET /fjdskjkldssd\" at /vagrant/proyectos/proy/app/cache/dev/classes.php:2107, Symfony\\Component\\Routing\\Exception\\ResourceNo tFoundException(code: 0): at /vagrant/proyectos/proy/app/cache/dev/appDevDebugProjectContainerUrlMatcher.php:3316)"} []
[2017-04-20 16:56:20] request.CRITICAL: Exception thrown when handling an exception (Symfony\Component\Routing\Exception\ResourceNotFo undException: at /vagrant/proyectos/proy/app/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 3316) {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\ResourceN otFoundException(code: 0): at /vagrant/proyectos/proy/app/cache/dev/appDevDebugProjectContainerUrlMatcher.php:3316)"} []
"kernel.exception" event
------------------------
------- ----------------------------------------------------------------------------------------- ----------
Order Callable Priority
------- ----------------------------------------------------------------------------------------- ----------
#1 Payum\Bundle\PayumBundle\EventListener\ReplyToHttp ResponseListener::onKernelException() 128
#2 JMS\I18nRoutingBundle\EventListener\LocaleChoosing Listener::onKernelException() 128
#3 APIBundle\EventListener\APIExceptionListener::onKe rnelException() 0
#4 Symfony\Component\HttpKernel\EventListener\Profile rListener::onKernelException() 0
#5 Symfony\Bundle\SwiftmailerBundle\EventListener\Ema ilSenderListener::onException() 0
#6 Symfony\Component\HttpKernel\EventListener\Excepti onListener::onKernelException() -128
------- ----------------------------------------------------------------------------------------- ----------
He revisado los listener y los bundles pero no consigo arreglarlo.
Gracias.