diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2024-02-09 16:56:39 +0100 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2024-02-09 16:56:39 +0100 |
| commit | faefb42e90089b8dcd389778db08ac42a4f1ab4b (patch) | |
| tree | c1a34f09310cc8d8fefd4eeff6da2842886b218c /modules/retry/retry.go | |
| parent | 0d6494d164cc490d62473eae0fbd79d5573bb380 (diff) | |
Add 403 Forbidden as retryable HTTP status codev0.7.1
Diffstat (limited to 'modules/retry/retry.go')
| -rw-r--r-- | modules/retry/retry.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/retry/retry.go b/modules/retry/retry.go index 9c00275..09cbdbd 100644 --- a/modules/retry/retry.go +++ b/modules/retry/retry.go @@ -64,6 +64,7 @@ func (m *Module) AdaptTransport(t http.RoundTripper) http.RoundTripper { func shouldRetry(resp *http.Response, err error) bool { statusCodes := []int{ + http.StatusForbidden, http.StatusRequestTimeout, http.StatusTooEarly, http.StatusTooManyRequests, |