diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php b/src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php index 2d5bea26b6389..15b1f1e2aba97 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php @@ -75,7 +75,7 @@ protected function getStatusCode(FlattenException $exception) switch ($exception->getClass()) { case 'Symfony\Component\Security\Exception\AccessDeniedException': return 403; - case 'Symfony\Component\HttpKernel\Exception\HttpNotFoundException': + case 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException': return 404; default: return 500;