Learn R Programming

nanonext (version 1.4.0)

status_code: Translate HTTP Status Codes

Description

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, ‘Unknown HTTP Status’ is returned - this may be a custom code used by the server.

Usage

status_code(x)

Value

A character vector comprising the status code and explanation separated by ‘ | ’.

Arguments

x

numeric HTTP status code to translate.

Examples

Run this code
status_code(200)
status_code(404)

Run the code above in your browser using DataLab