According to symfony2 documentation NotFoundHttpException should be caught by the framework and ultimately trigger a 404 response, but I'm just getting fatal error (Uncaught exception) with status 200 on prod environment. On the dev environment I got 404. I'm using this:
throw $this->createNotFoundException();
I just want to display my customized 404 page. I've cleared cache but it hasn't helped. Am I doing something wrong?