Polly.Extensions.Http icon indicating copy to clipboard operation
Polly.Extensions.Http copied to clipboard

OrTransientHttpError should also consider HTTP 429 (too many requests)?

Open ghost opened this issue 5 years ago • 1 comments

There is a rationale behind the fact that OrTransientHttpError is not considering HTTP 429 as a transient error?

HTTP 429 (too many requests) is the correct error reply in case of throttling. I think it's a good case where we want to retry a request a little bit later (maybe with an exponential backoff).

ghost avatar May 15 '20 09:05 ghost

I'd also add that it would be good to adhere to the Retry-After header, if present on a 429 response.

cocowalla avatar Jun 09 '21 11:06 cocowalla