Redirect.li API

Access the Redirect.li service through the API.

Status Code

Get HTTP status code

Gets detailed information for the requested HTTP status code

GEThttps://api.redirect.li/v1/status/:code

URL Parameters

These parameters are supplied in the request URL.

:codeinteger

HTTP status code

Query Example

curl https://api.redirect.li/v1/status/301

200 Success

This JSON object will be returned on a successful query.

statusCodeinteger

The requested status code

linkString

URL to documentation page

statusobject[]

Array of status codes descriptions that match. Typically there is one description, but some codes have multiple definitions.

nameString

Status code name

descriptionString

Status code description

Example

HTTP/1.1 200 OK
{
    "statusCode": 301,
    "status": [
        {
            "name": "Permanent Redirect",
            "description": "Permanent redirect to another URL."
        }
    ],
    "link": "https://redirect.li/http/status/code/301/"
}