Specifies how a request should act in the case of an error.
public enum RetryMode : int
If a request fails, an exception is thrown immediately.
Continuously retry a request until it times out, its cancel token is triggered, or the server responds with a non-502 error.
Retry if a request failed due to an HTTP error 502.
Retry if a request failed due to a rate-limit.
Retry if a request timed out.