<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.16" />

Microsoft.Rest.TransientFaultHandling.HttpRequestWithStatusException

Inherits HttpRequestException adding HttpStatusCode to the exception.
public HttpStatusCode StatusCode { get; set; }

Http status code.

Initializes a new instance of the HttpRequestWithStatusException class.

public HttpRequestWithStatusException(string message)

Initializes a new instance of the HttpRequestWithStatusException class with a specific message that describes the current exception.

public HttpRequestWithStatusException(string message, Exception inner)

Initializes a new instance of the HttpRequestWithStatusException class with a specific message that describes the current exception and an inner exception.