/v1/list
List status codes
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/httpstatus-api/v1/list" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/httpstatus-api/v1/list", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/httpstatus-api/v1/list");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/httpstatus-api/v1/list",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"codes": [
{
"rfc": "RFC 9110",
"code": 400,
"message": "Bad Request",
"category": "Client Error",
"is_error": true,
"description": "The server cannot process the request due to a client error.",
"is_retryable": false,
"category_class": "4xx"
},
{
"rfc": "RFC 9110",
"code": 401,
"message": "Unauthorized",
"category": "Client Error",
"is_error": true,
"description": "Authentication is required and has failed or not been provided.",
"is_retryable": false,
"category_class": "4xx"
},
{
"rfc": "RFC 9110",
"code": 402,
"message": "Payment Required",
"category": "Client Error",
"is_error": true,
"description": "Reserved for future use; sometimes used for paywalls/quotas.",
"is_retryable": false,
"category_class": "4xx"
},
{
"rfc": "RFC 9110",
"code": 403,
"message": "Forbidden",
"category": "Client Error",
"is_error": true,
"description": "The server understood the request but refuses to authorize it.",
"is_retryable": false,
"category_class": "4xx"
},
{
"rfc": "RFC 9110",
"code": 404,
"message": "Not Found",
"category": "Client Error",
"is_error": true,
"description": "The server cannot find the requested resource.",
"is_retryable": false,
"category_class": "4xx"
},
{
"rfc": "RFC 9110",
"code": 405,
"message": "Method Not Allowed",
"category": "Client Error",
"is_error": true,
"description": "The request method is not supported for this resource.",
"is_retryable": false,
"category_class": "4xx"
},
{
"rfc": "RFC 9110",
"code": 406,
"message": "Not Acceptable",
"category": "Client Error",
"is_error": true,
"description": "No content matching the Accept headers is available.",
"is_retryable": false,
"category_class": "4xx"
},
{
"rfc": "RFC 9110",
"code": 407,
"message": "Proxy Authentication Required",
"category": "Client Error",
"is_error": true,
"description": "The client must aut
…