Function: http.default_retry_predicate_non_idempotent

Simple default retry predicate for non-idempotent targets.

If your target is idempotent, use default_retry_predicate() instead.

Retries on 429 (Too Many Requests) and 503 (Service Unavailable).

Arguments

Arguments
exception The error to apply the retry criterion upon.

Returns

true when the retry criterion is satisfied, false otherwise.