Debian Codegraph @

man/status_code.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/utils.R
3 \name{status_code}
4 \alias{status_code}
5 \title{Translate HTTP Status Codes}
6 \usage{
7 status_code(x)
8 }
9 \arguments{
10 \item{x}{numeric HTTP status code to translate.}
11 }
12 \value{
13 A character vector comprising the status code and explanation
14 separated by \code{'|'}.
15 }
16 \description{
17 Provides an explanation for HTTP response status codes (in the range 100 to
18 599). If the status code is not defined as per RFC 9110,
19 \code{"Unknown HTTP Status"} is returned - this may be a custom code used by the
20 server.
21 }
22 \examples{
23 status_code(200)
24 status_code(404)
25
26 }