protected function renderMessage($message, $statusCode = 404)
    {
        $response = new Response();
        $response->setStatusCode($statusCode);
        $response->setContent($message);

        return $response;
    }
protected function renderMessage($message, $statusCode = 404)
    {
        $response = new Response();
        $response->setStatusCode($statusCode);
        $response->setContent($message);

        return $response;
    }
Returns a response with the given message
@param string $message
@param int $statusCode

@return \Symfony\Component\HttpFoundation\Response