ErrorPropagatedRetryPolicy is the same as DefaultRetryPolicy, except it propagates errors back instead of returning nil.
But there is a difference since the merge of PR https://github.com/hashicorp/go-retryablehttp/pull/100, which added retries on 429 Too Many Requests errors in DefaultRetryPolicy... but not in ErrorPropagatedRetryPolicy.
Quoting the documentation of ErrorPropagatedRetryPolicy:
But there is a difference since the merge of PR https://github.com/hashicorp/go-retryablehttp/pull/100, which added retries on
429 Too Many Requests
errors inDefaultRetryPolicy
... but not inErrorPropagatedRetryPolicy
.Fix proposal in https://github.com/hashicorp/go-retryablehttp/pull/116 to realign both policies.