symfony/symfony — pull request #5043 by romainneutron (2012-07-25 11:49:39+00:00)
Title: Add special header to customize Response StatusCode in Error context

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes [![Build Status](https://secure.travis-ci.org/romainneutron/symfony.png?branch=ResponseHeader)](http://travis-ci.org/romainneutron/symfony)
License of the code: MIT

As described here fabpot/Silex#438

Add special header to customize Response StatusCode when an exception has been thrown.

This is useful as HttpKernel set response statuscode to 500 by default if the exception do not implement HttpExceptionInterface.

See test for example