Skip to main content

HttpException

A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Exceptions.

Thrown when an API call fails with an HTTP status other than 400 or 403. Carries the status and the response.

Constructors​

MemberWhat it is
HttpException(HttpStatusCode statusCode)Creates the exception with statusCode.

Properties​

MemberWhat it is
HttpResponseMessage Response { get; set; }The failed HttpResponseMessage, when the call went through HttpClient.
HttpStatusCode StatusCode { get; private set; }The HTTP status the call failed with.
HttpWebResponse WebResponse { get; set; }The failed response, when the call went through HttpWebRequest.