Retry requests on failure
Retry a request when the response code matches the supplied failure range.
Retry a request when the response code matches the supplied failure range. Add this to a connection so that a request that fails for a temporary reason, such as the other system being briefly overloaded or unavailable, is automatically tried again instead of failing straight away. You decide how many extra attempts to make, how long to wait between them, and which response codes count as a failure worth retrying. By default it makes one extra attempt, waits one second in between, and retries on server error codes (500 up to but not including 600).