Render allows a Response object as 3rd parameter http://api.symfony.com/2.4/Symfony/Bundle/FrameworkBundle/Controller/Controller.html#method_render and that could have the header with the content-type