original_string: protected function createErrorResponse($content = 'Unknown Error', $code = 500)
      {
          $data = [
              'message' => $content
          ];
  
          $response = $this->createJsonResponse($data, $code);
          return $response;
      }
code: protected function createErrorResponse($content = 'Unknown Error', $code = 500)
      {
          $data = [
              'message' => $content
          ];
  
          $response = $this->createJsonResponse($data, $code);
          return $response;
      }
code_tokens: protected function createErrorResponse ( $ content = 'Unknown Error' , $ code = 500 ) { $ data = [ 'message' => $ content ] ; $ response = $ this -> createJsonResponse ( $ data , $ code ) ; return $ response ; }
docstring: Create and return an error response with a standard format
  
  Response will be formatted as a JSON object with the format:
  {
  "message" : "text"
  }
  
  @param  string  $content Response content
  @param  integer $code    HTTP response code
  @return Response
docstring_tokens: Create and return an error response with a standard format