I am using the mix Spring-Cloud + feign + spring-retry to help retry requests on the client side (all are Kotlin-based back-ends)
My spring-boot conf is like this:
myApp:
ribbon:
OkToRetryOnAllOperations: true
retryableStatusCodes: 404, 503
(note: OkToRetryOnAllOperations=true is only present to retry also POST/PUT requests)
Retrying 404 & 503 HTTP codes sounds good, but I cannot figure out if there is a "classic" or "default" list of error codes to retry. Does this kind of good practice exist?
We suppose all the requests are idempotent on the server side (if not, retrying could cause problems).