use drupal http headers functions to set headers on symfony response.
return some code to drupal_page_footer