symfony/symfony-docs — pull request #1849 by egulias (2012-10-26 15:46:12+00:00)
Title: [Coookbook] - EventListener exception method error

\Exception does not have a "getCodeStatus" method, but a"getCode". Apart from that, this code is related to the exception not to the Response status code.
Therefore I've adapted the $message to have the exception code via getCode and added a 500 HTTP Status Code.