Polly.Extensions.Http
Polly.Extensions.Http copied to clipboard
500 status code should not be considered as transient error
Current Problem Statement: the current 5XX check includes 500 which is not TransientError, 500 error requires code changes or query changes by the dev team.
- so retry for 500 always returns 500
- if there is dependency on Service-1 for 3 different Api calls for 3 different workflows, opening circuit for 500 error on Api-1 makes the entire Service unavailable.
Proposed Fix: response status code should be ">500" instead of ">=500"
Any discussion around this a little bit controversial topic? :)