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

Microsoft.Rest.TransientFaultHandling.HttpStatusCodeErrorDetectionStrategy

Default Http error detection strategy based on Http Status Code.

public bool IsTransient(Exception ex)

Returns true if status code in HttpRequestExceptionWithStatus exception is greater than or equal to 500 and not NotImplemented (501) or HttpVersionNotSupported (505). Or it's 429 (TOO MANY REQUESTS)