/** * @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>"; }