diff --git a/internal/clientv2/interceptor_retry_simple.go b/internal/clientv2/interceptor_retry_simple.go index b7e04d64..0e8a929b 100644 --- a/internal/clientv2/interceptor_retry_simple.go +++ b/internal/clientv2/interceptor_retry_simple.go @@ -153,10 +153,18 @@ func isResponseRetryable(resp *http.Response) bool { } func isStatusCodeRetryable(statusCode int) bool { - if statusCode < 500 { + if statusCode < 300 { return false } + if statusCode < 400 { + return true + } + + if statusCode < 500 { + return statusCode == 404 + } + if statusCode == 501 || statusCode == 509 || statusCode == 573 || statusCode == 579 || statusCode == 608 || statusCode == 612 || statusCode == 614 || statusCode == 616 || statusCode == 618 || statusCode == 630 || statusCode == 631 || statusCode == 632 || statusCode == 640 || statusCode == 701 {