Share via


AutoClientHttpError Class

Definition

Holds details about an HTTP error.

public ref class AutoClientHttpError
public class AutoClientHttpError
type AutoClientHttpError = class
Public Class AutoClientHttpError
Inheritance
AutoClientHttpError

Remarks

When a REST API client fails, it will throw a AutoClientException. This exception contains a AutoClientHttpError instance that holds details like content, headers and status code.

Constructors

AutoClientHttpError(Int32, IReadOnlyDictionary<String,StringValues>, String, String)

Initializes a new instance of the AutoClientHttpError class.

Properties

RawContent

Gets the raw string content returned in the response.

ReasonPhrase

Gets the HTTP error reason.

ResponseHeaders

Gets the HTTP response headers.

StatusCode

Gets the HTTP status code returned in the response.

Methods

CreateAsync(HttpResponseMessage, CancellationToken)

Creates an instance of AutoClientHttpError based on an HttpResponseMessage.

Applies to