From 57510dda773cb97f21afe401dab84b9df593e277 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Thu, 12 Dec 2024 19:53:20 +0100 Subject: [PATCH] 408 Server Timeout should be a retryable status code --- retry.go | 1 + 1 file changed, 1 insertion(+) diff --git a/retry.go b/retry.go index 4cc45920c..ed954017c 100644 --- a/retry.go +++ b/retry.go @@ -112,6 +112,7 @@ func isS3CodeRetryable(s3Code string) (ok bool) { // List of HTTP status codes which are retryable. var retryableHTTPStatusCodes = map[int]struct{}{ + http.StatusRequestTimeout: {}, 429: {}, // http.StatusTooManyRequests is not part of the Go 1.5 library, yet 499: {}, // client closed request, retry. A non-standard status code introduced by nginx. http.StatusInternalServerError: {},