Skip to content

Commit

Permalink
Add retrying logic for 4xx errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihail Tsonev committed Mar 6, 2018
1 parent a053673 commit 8e1b5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/baseclient/client_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func shouldRetry(err error) bool {
if ok {
httpCode := ae.Code
httpCodeMajorDigit := httpCode / 100
if httpCodeMajorDigit == 5 {
if httpCodeMajorDigit == 5 || httpCodeMajorDigit == 4 {
return true
}
}
Expand Down

0 comments on commit 8e1b5d5

Please sign in to comment.