Learn R Programming

nixtlar (version 0.6.1)

.transient_errors: A function used by httr2::req_retry() to determine if the response represents a transient error This is a private function of 'nixtlar'

Description

A function used by httr2::req_retry() to determine if the response represents a transient error This is a private function of 'nixtlar'

Usage

.transient_errors(resp)

Value

TRUE if the response status is 500 or 502, FALSE otherwise.

Arguments

resp

The response to a HTTP request

Examples

Run this code
if (FALSE) {
.transient_errors(resp)
}

Run the code above in your browser using DataLab