Skip to content

Commit

Permalink
Cosmos: retry on error codes 408 and 410
Browse files Browse the repository at this point in the history
Fixes #28629
  • Loading branch information
rmt2021 committed Aug 12, 2022
1 parent a3ca24a commit 2dcd881
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ protected override bool ShouldRetryOn(Exception exception)

static bool IsTransient(HttpStatusCode statusCode)
=> statusCode == HttpStatusCode.ServiceUnavailable
|| statusCode == HttpStatusCode.TooManyRequests;
|| statusCode == HttpStatusCode.TooManyRequests
|| statusCode == HttpStatusCode.RequestTimeout
|| statusCode == HttpStatusCode.Gone;
}

/// <summary>
Expand Down

0 comments on commit 2dcd881

Please sign in to comment.