EventListener/ExceptionListener.php
private function getStatusCode(\Exception $exception)
    {
        $statusCode = $this->default['status'];

        if ($exception instanceof SymfonyHttpExceptionInterface
            || $exception instanceof HttpExceptionInterface
        ) {
            $statusCode = $exception->getStatusCode();
        }

        return $statusCode;
    }
private function getStatusCode(\Exception $exception)
    {
        $statusCode = $this->default['status'];

        if ($exception instanceof SymfonyHttpExceptionInterface
            || $exception instanceof HttpExceptionInterface
        ) {
            $statusCode = $exception->getStatusCode();
        }

        return $statusCode;
    }
private function getStatusCode ( \ Exception $ exception ) { $ statusCode = $ this -> default [ 'status' ] ; if ( $ exception instanceof SymfonyHttpExceptionInterface || $ exception instanceof HttpExceptionInterface ) { $ statusCode = $ exception -> getStatusCode ( ) ; } return $ statusCode ; }
Get exception status code

@param \Exception $exception

@return integer
Get exception status code