protected function createSimpleResponse($code = 500, $content = 'Unknown error')
    {
        $response = new Response;
        $response->setStatusCode($code)
            ->setContent($content);

        return $response;
    }
protected function createSimpleResponse($code = 500, $content = 'Unknown error')
    {
        $response = new Response;
        $response->setStatusCode($code)
            ->setContent($content);

        return $response;
    }
protected function createSimpleResponse ( $ code = 500 , $ content = 'Unknown error' ) { $ response = new Response ; $ response -> setStatusCode ( $ code ) -> setContent ( $ content ) ; return $ response ; }
Create and return an error response object

@param  integer $code    HTTP response code
@param  string  $content Response content
@return Response
Create and return an error response object