UTILIDADES Y HERRAMIENTAS

Códigos de estado HTTP

Una ficha de consulta para interpretar las principales respuestas HTTP utilizadas en aplicaciones web y APIs.

FUNDAMENTOS

Qué es un código de estado HTTP

HTTP

Petición y respuesta

INFORMATIVAS

Respuestas 1xx

100

100 Continue

101

101 Switching Protocols

ÉXITO

Respuestas 2xx

200

200 OK

201

201 Created

202

202 Accepted

204

204 No Content

REDIRECCIÓN

Respuestas 3xx

301

301 Moved Permanently

302

302 Found

304

304 Not Modified

307 Y 308

Redirecciones que preservan el método

ERROR DE CLIENTE

Respuestas 4xx

400

400 Bad Request

401

401 Unauthorized

403

403 Forbidden

404

404 Not Found

405

405 Method Not Allowed

409

409 Conflict

415

415 Unsupported Media Type

422

422 Unprocessable Content

429

429 Too Many Requests

ERROR DE SERVIDOR

Respuestas 5xx

500

500 Internal Server Error

502

502 Bad Gateway

503

503 Service Unavailable

504

504 Gateway Timeout

AUTENTICACIÓN Y ACCESO

Diferencia entre 401 y 403

DIAGNÓSTICO

Diferencia entre 404 y 500

APIS

Códigos habituales en APIs

APIS

Código y cuerpo de respuesta

CONTEXTO

El código no actúa solo

SEMÁNTICA

El método también importa

CRITERIO TÉCNICO

Errores frecuentes de interpretación

DIAGNÓSTICO

Interpretar una respuesta

TERMINAL

Consultar respuestas con curl

RESUMEN

Referencia rápida

IDEAS CLAVE

Qué conviene recordar

SIGUE CONSULTANDO

Recursos relacionados

PARA AMPLIAR

Documentación de referencia