Skip to content

Commit

Permalink
Add 403 Forbidden as retryable HTTP status code
Browse files Browse the repository at this point in the history
  • Loading branch information
philippta committed Feb 9, 2024
1 parent 0d6494d commit faefb42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit faefb42

Please sign in to comment.