示例#1
0
 /**
  * @param HTTPResponse $response
  * @return string XML string containing the HTTP error message
  */
 protected function getErrorMessage($response)
 {
     return "<error type=\"authentication\" code=\"" . $response->getStatusCode() . "\">" . $response->getStatusDescription() . "</error>";
 }