skipRetry if the request method is POST, or not one of the following http status codes: 500, 502, 503, 504.
(httpMethod string, response *http.Response)
| 60 | // skipRetry if the request method is POST, or not one of the following http |
| 61 | // status codes: 500, 502, 503, 504. |
| 62 | func (*RetryRequest) skipRetry(httpMethod string, response *http.Response) bool { |
| 63 | return httpMethod == http.MethodPost || |
| 64 | response != nil && |
| 65 | response.StatusCode != http.StatusInternalServerError && |
| 66 | response.StatusCode != http.StatusBadGateway && |
| 67 | response.StatusCode != http.StatusServiceUnavailable && |
| 68 | response.StatusCode != http.StatusGatewayTimeout |
| 69 | } |