App-vNext / Polly.Extensions.Http

Polly.Extensions.Http is an extensions package containing opinionated convenience methods for configuring Polly policies to handle transient faults typical of calls through HttpClient.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

opened this issue · 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).

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