code: protected function renderMessage($message, $statusCode = 404)
      {
          $response = new Response();
          $response->setStatusCode($statusCode);
          $response->setContent($message);
  
          return $response;
      }
docs: Returns a response with the given message
  @param string $message
  @param int $statusCode
  
  @return \Symfony\Component\HttpFoundation\Response