shouldRetry

fun shouldRetry(statusCode: Int): Boolean

Checks whether a response with the given HTTP status code should be retried.

Return

true if statusCode is one of retryStatusCodes; otherwise false.

Parameters

statusCode

HTTP status code returned by the response.