Skip to content

Commit

Permalink
more status code which shouldn't be retried
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Haynie committed Oct 25, 2018
1 parent 3afe4c0 commit fc63cd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ func (c *HTTPClient) Do(req *http.Request) (*http.Response, error) {
resp.StatusCode == http.StatusMethodNotAllowed ||
resp.StatusCode == http.StatusPermanentRedirect ||
resp.StatusCode == http.StatusTemporaryRedirect ||
resp.StatusCode == http.StatusConflict {
resp.StatusCode == http.StatusConflict ||
resp.StatusCode == http.StatusRequestEntityTooLarge ||
resp.StatusCode == http.StatusRequestedRangeNotSatisfiable ||
resp.StatusCode == http.StatusRequestHeaderFieldsTooLarge {
// check to see if we have a multiple stream response (pagination)
if streams != nil && resp.Body != nil {
streams.Add(resp.Body)
Expand Down

0 comments on commit fc63cd5

Please sign in to comment.