Aller au contenu
GET /v1/list

List status codes

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/httpstatus-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
…