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.
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.
The requested status code
URL to documentation page
Array of status codes descriptions that match. Typically there is one description, but some codes have multiple definitions.
Status code name
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/"
}