Interface HttpError
public interface HttpError
The object describing an HTTP error.
- See Also:
-
OperationError.NetworkErrorOperationError.ClockSkewTooBigDeviceInformationCheckError.NetworkErrorDeviceInformationCheckError.ClockSkewTooBigDeviceInformationCheckError.ForbiddenDeviceInformationSyncError.NetworkErrorDeviceInformationSyncError.ClockSkewTooBigAuthCloudApiError.NetworkErrorAuthCloudApiError.OperationError.ClockSkewTooBigDeviceInformationChangeError.NotFoundDeviceInformationChangeError.NetworkErrorDeviceInformationChangeError.NameAlreadyExistsDeviceInformationChangeError.ClockSkewTooBigOutOfBandOperationError.NetworkErrorPendingOutOfBandOperationsError.NetworkErrorPendingOutOfBandOperationsError.ClockSkewTooBig
-
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the body of the HTTP response, if any.headers()Returns the headers of the HTTP response.method()Returns the HTTP method of the request that failed.Returns the exact URL of the request that failed.intReturns the HTTP status code returned by the server.
-
Method Details
-
statusCode
int statusCode()Returns the HTTP status code returned by the server.- Returns:
- the HTTP status code
-
requestUrl
Returns the exact URL of the request that failed.- Returns:
- the URL of the failed request
-
body
Returns the body of the HTTP response, if any.- Returns:
- the body of the HTTP response
-
headers
Returns the headers of the HTTP response.- Returns:
- the headers of the HTTP response
-
method
Returns the HTTP method of the request that failed.- Returns:
- the HTTP method of the request.
-