Provides an explanation for HTTP response status codes (in the range 100 to 599). If the status code is not defined as per RFC 9110, 'Non-standard Response' is returned, which may be a custom code used by the server.

status_code(x)

Arguments

x

numeric HTTP status code to translate.

Value

A character vector.

Examples

status_code(200)
#> [1] "OK"
status_code(404)
#> [1] "Not Found"