Códigos de estado HTTP
Devuelve cualquier código de estado HTTP bajo demanda, con las cabeceras que ese estado suele llevar.
Gratis: estos endpoints no necesitan cuenta.
- GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/status/{code}Responds with the requested HTTP status code. - GET
https://api.testingapis.com/api/status/listLists every known HTTP status code with its reason phrase and category. - GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/status/randomResponds with a status code picked at random from a weighted pool.
Petición de ejemplo
Lists every known HTTP status code with its reason phrase and category. Referencia completa y botón Send (en inglés).
cURL
curl -X GET "https://api.testingapis.com/api/status/list"Respuesta · 200 OK
[
{
"code": 100,
"statusText": "Continue",
"category": "informational",
"supported": false,
"url": null
},
{
"code": 101,
"statusText": "Switching Protocols",
"category": "informational",
"supported": false,
"url": null
… (3 more lines)