Referencia de Códigos de Estado HTTP

Referencia con búsqueda de todos los códigos de estado HTTP agrupados por clase (1xx–5xx) con nombres y descripciones.

Ingresa un código (ej: 404) o una palabra clave (ej: redirección)

1xx

1xx — Informativo

100

Continue

The server has received the request headers and the client should proceed to send the request body.

101

Switching Protocols

The server agrees to switch protocols as requested by the client via the Upgrade header.

102

Processing

The server has received and is processing the request, but no response is available yet.

103

Early Hints

Used to return some response headers before the final HTTP message, allowing the client to preload resources.

2xx

2xx — Éxito

200

OK

The request succeeded. The response body contains the requested data.

201

Created

The request succeeded and a new resource was created. Typically returned after POST or PUT requests.

202

Accepted

The request has been accepted for processing, but the processing has not been completed yet.

204

No Content

The request succeeded but there is no content to send in the response body.

206

Partial Content

The server delivers only part of the resource due to a range header sent by the client.

207

Multi-Status

Conveys information about multiple resources, used in WebDAV when the response may contain multiple status codes.

3xx

3xx — Redirección

301

Moved Permanently

The requested resource has been permanently moved to a new URL. Clients should update their bookmarks.

302

Found

The resource is temporarily at a different URL. The client should continue using the original URL for future requests.

303

See Other

The server directs the client to get the requested resource at another URL using a GET request.

304

Not Modified

The resource has not been modified since the last request. The client can use the cached version.

307

Temporary Redirect

The resource is temporarily at a different URL. Unlike 302, the request method must not change.

308

Permanent Redirect

The resource has permanently moved to a new URL and the request method must not change.

4xx

4xx — Errores del Cliente

400

Bad Request

The server cannot process the request due to malformed syntax, invalid framing, or deceptive request routing.

401

Unauthorized

Authentication is required and has failed or has not yet been provided.

403

Forbidden

The server understood the request but refuses to authorize it. Authentication will not help.

404

Not Found

The server cannot find the requested resource. The URL is not recognized or the resource does not exist.

405

Method Not Allowed

The HTTP method used in the request is not allowed for the target resource.

408

Request Timeout

The server timed out waiting for the request. The client may repeat the request without modification.

409

Conflict

The request conflicts with the current state of the target resource.

410

Gone

The resource is no longer available and no forwarding address is known. This condition is expected to be permanent.

413

Content Too Large

The request body is larger than the limits defined by the server.

415

Unsupported Media Type

The media format of the requested data is not supported by the server.

422

Unprocessable Entity

The request was well-formed but was unable to be followed due to semantic errors.

429

Too Many Requests

The user has sent too many requests in a given amount of time (rate limiting).

5xx

5xx — Errores del Servidor

500

Internal Server Error

The server encountered an unexpected condition that prevented it from fulfilling the request.

501

Not Implemented

The server does not support the functionality required to fulfill the request.

502

Bad Gateway

The server, acting as a gateway or proxy, received an invalid response from the upstream server.

503

Service Unavailable

The server is not ready to handle the request. Common causes are overloading or maintenance.

504

Gateway Timeout

The server, acting as a gateway or proxy, did not receive a timely response from the upstream server.

505

HTTP Version Not Supported

The HTTP version used in the request is not supported by the server.

Referencia de Códigos de Estado HTTP

Los códigos de estado HTTP son números de tres dígitos devueltos por un servidor web para indicar el resultado de una solicitud del cliente. Se agrupan en cinco clases: respuestas informativas 1xx, códigos de éxito 2xx, redirecciones 3xx, errores del cliente 4xx y errores del servidor 5xx. Comprender estos códigos es esencial para depurar APIs, aplicaciones web y solicitudes de red.

Esta referencia cubre todos los códigos de estado HTTP de uso común definidos en RFC 9110 y especificaciones relacionadas. Usa el cuadro de búsqueda para filtrar instantáneamente los códigos por número o palabra clave — útil al diagnosticar problemas en registros de servidor, herramientas de desarrollador del navegador o respuestas de API.

Como funciona

Los códigos de estado HTTP siguen una clasificación estructurada: 1xx = informativo (solicitud recibida, procesando), 2xx = éxito (solicitud recibida, entendida y aceptada), 3xx = redirección (acción adicional necesaria), 4xx = error del cliente (sintaxis incorrecta o solicitud no puede ser cumplida), 5xx = error del servidor (el servidor falló al cumplir una solicitud válida).

Casos de uso

  • Depurar respuestas de APIs REST y comprender mensajes de error
  • Configurar redirecciones en servidores web (301, 302, 307, 308)
  • Diagnosticar fallos de autenticación y autorización (401, 403)
  • Identificar problemas de limitación de tasa y capacidad en producción (429, 503)
  • Construir clientes HTTP y manejar escenarios específicos de respuesta mediante programación

Preguntas frecuentes

¿Cuál es la diferencia entre los errores 401 y 403?

El 401 Unauthorized significa que la solicitud carece de credenciales de autenticación válidas — el servidor no sabe quién eres, e iniciar sesión puede resolverlo. El 403 Forbidden significa que el servidor sabe quién eres pero se niega a conceder acceso a ese recurso. En resumen: 401 es un problema de autenticación, 403 es un problema de autorización.

¿Qué significa el error 500 Internal Server Error?

Un error 500 indica que el servidor encontró una condición inesperada al procesar una solicitud válida — típicamente una excepción no controlada, una mala configuración o una dependencia de backend caída. Es una falla genérica del lado del servidor, por lo que la corrección corresponde al operador del sitio o de la API, no al cliente. Revisar los registros del servidor suele ser el primer paso de la depuración.

¿Cuál es la diferencia entre las redirecciones 301 y 302?

Un 301 Moved Permanently indica a los clientes y motores de búsqueda que el recurso tiene una nueva URL permanente, por lo que los navegadores lo almacenan en caché y los buscadores transfieren las señales de posicionamiento. Un 302 Found señala un cambio temporal, indicando que la URL original debe seguir usándose en el futuro. Para SEO, usa 301 en cambios permanentes de URL y 302 solo en situaciones realmente temporales.

¿Por qué recibo el error 429 Too Many Requests?

Un 429 significa que has superado el límite de solicitudes que el servidor permite para tu cliente, clave de API o dirección IP en una ventana de tiempo. Muchas APIs incluyen un encabezado Retry-After que indica cuánto esperar antes de reintentar. Las soluciones habituales son agregar pausas entre solicitudes, implementar backoff exponencial o solicitar un límite mayor.

¿Cuál es la diferencia entre los errores 502, 503 y 504?

Los tres son errores del lado del servidor, comunes detrás de proxies y balanceadores de carga. Un 502 Bad Gateway significa que un servidor upstream devolvió una respuesta inválida, un 503 Service Unavailable indica que el servidor está temporalmente sobrecargado o en mantenimiento, y un 504 Gateway Timeout significa que un servidor upstream tardó demasiado en responder. Suelen indicar problemas de infraestructura y no un error en tu solicitud.

Calculadoras Relacionadas