Skip to contents

Is it an HTTP status code?

Usage

is_http_status(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for a three-digit code in 100-599.

Examples

is_http_status(c("200", "404", "099", "600", NA))
#> [1]  TRUE  TRUE FALSE FALSE    NA