original_string: protected function getErrorMessage($http_status_code,
                                       $http_result,
                                       $msg_prefix = "Cloud Storage Error:") {
      if ($this->tryParseCloudStorageErrorMessage($http_result,
                                                  $code,
                                                  $message)) {
        return sprintf("%s %s (%s)", $msg_prefix, $message, $code);
      } else {
        return sprintf("%s %s",
                       $msg_prefix,
                       HttpResponse::getStatusMessage($http_status_code));
      }
    }
code: protected function getErrorMessage($http_status_code,
                                       $http_result,
                                       $msg_prefix = "Cloud Storage Error:") {
      if ($this->tryParseCloudStorageErrorMessage($http_result,
                                                  $code,
                                                  $message)) {
        return sprintf("%s %s (%s)", $msg_prefix, $message, $code);
      } else {
        return sprintf("%s %s",
                       $msg_prefix,
                       HttpResponse::getStatusMessage($http_status_code));
      }
    }
code_tokens: protected function getErrorMessage ( $ http_status_code , $ http_result , $ msg_prefix = "Cloud Storage Error:" ) { if ( $ this -> tryParseCloudStorageErrorMessage ( $ http_result , $ code , $ message ) ) { return sprintf ( "%s %s (%s)" , $ msg_prefix , $ message , $ code ) ; } else { return sprintf ( "%s %s" , $ msg_prefix , HttpResponse :: getStatusMessage ( $ http_status_code ) ) ; } }
docstring: Return a formatted error message for the http response.
  
  @param int $http_status_code The HTTP status code returned from the last
  http request.
  @param string $http_result The response body from the last http request.
  @param string $msg_prefix The prefix to add to the error message that will
  be generated.
  
  @return string The error message for the last HTTP response.
docstring_tokens: Return a formatted error message for the http response .