Skip to contents

For a failure with no HTTP response at all. A DNS failure or a refused connection is an error; only an actual timeout is a timeout, because the two read very differently to a user deciding whether to retry.

Usage

classify_condition(cond)

Arguments

cond

A condition caught from a failed request.

Value

One of STATUS_LEVELS.

Examples

classify_condition(simpleError("Timeout was reached"))
#> [1] "timeout"
classify_condition(simpleError("Could not resolve host"))
#> [1] "error"