public function showAction(FlattenException $exception, DebugLoggerInterface $logger = null, $format = 'html')
{
$statusCode = $exception->getStatusCode();
$statusText = $exception->getMessage();
$response = $this->render('GitonomyWebsiteBundle:Error:error.html.twig', array('status_code' => $statusCode, 'status_text' => $statusText));
$response->setStatusCode($statusCode);
$response->headers->replace($exception->getHeaders());
return $response;
}