Use request format from request in twig ExceptionController