<PackageReference Include="Azure.Core" Version="1.44.0" />

ResponseClassifier

public class ResponseClassifier
A type that analyzes HTTP responses and exceptions and determines if they should be retried, and/or analyzes responses and determines if they should be treated as error responses.

public virtual bool IsErrorResponse(HttpMessage message)

Specifies if the response contained in the message is not successful.

public virtual bool IsRetriable(HttpMessage message, Exception exception)

Specifies if the operation that caused the exception should be retried taking the HttpMessage into consideration.

public virtual bool IsRetriableException(Exception exception)

Specifies if the operation that caused the exception should be retried.

public virtual bool IsRetriableResponse(HttpMessage message)

Specifies if the request contained in the message should be retried.