Skip to main content

Referencia de Códigos de Estado HTTP

Busque y explore todos los códigos de estado HTTP con descripciones. Filtre por número de código, nombre o descripción en las cinco categorías.

Ad (leaderboard)
Mostrando 0 códigos de estado

1xx — Informational

100
Continue

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

101
Switching Protocols

The server is switching 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 final HTTP message, allowing preloading of resources.

2xx — Success

200
OK

The request has succeeded. The meaning depends on the HTTP method used.

201
Created

The request has been fulfilled and a new resource has been created.

202
Accepted

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

203
Non-Authoritative Information

The returned metadata is from a local or third-party copy, not the origin server.

204
No Content

The server successfully processed the request but is not returning any content.

205
Reset Content

The server successfully processed the request and asks the client to reset the document view.

206
Partial Content

The server is delivering only part of the resource due to a Range header sent by the client.

207
Multi-Status

A WebDAV response that conveys information about multiple resources.

208
Already Reported

Used in DAV bindings to avoid enumerating the same resource multiple times.

3xx — Redirection

300
Multiple Choices

The request has more than one possible response. The user should choose one of them.

301
Moved Permanently

The resource has been permanently moved to a new URL. Search engines will update their links.

302
Found

The resource is temporarily at a different URL. The client should continue to use the original URL.

303
See Other

The response to the request can be found under another URL using a GET method.

304
Not Modified

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

307
Temporary Redirect

The request should be repeated with another URL, but future requests should still use the original.

308
Permanent Redirect

The request and all future requests should be repeated using another URL. Method must not change.

4xx — Client Error

400
Bad Request

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

401
Unauthorized

Authentication is required. The client must provide valid credentials to access the resource.

402
Payment Required

Reserved for future use. Originally intended for digital payment schemes.

403
Forbidden

The server understood the request but refuses to authorize it, even with authentication.

404
Not Found

The server cannot find the requested resource. The URL may be incorrect or the resource deleted.

405
Method Not Allowed

The HTTP method used is not supported for the requested resource.

406
Not Acceptable

The resource cannot generate content matching the Accept headers sent by the client.

407
Proxy Authentication Required

The client must first authenticate itself with the proxy server.

408
Request Timeout

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

409
Conflict

The request conflicts with the current state of the server, such as an edit conflict.

410
Gone

The resource is permanently gone and will not be available again. Different from 404.

411
Length Required

The server requires a Content-Length header to be sent with the request.

412
Precondition Failed

One or more conditions in the request header fields evaluated to false.

413
Payload Too Large

The request body is larger than the server is willing or able to process.

414
URI Too Long

The URI provided was too long for the server to process.

415
Unsupported Media Type

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

416
Range Not Satisfiable

The range specified in the Range header cannot be fulfilled.

418
I'm a Teapot

The server refuses to brew coffee because it is a teapot. Defined in RFC 2324 as an April Fools joke.

422
Unprocessable Entity

The request was well-formed but could not be processed due to semantic errors.

425
Too Early

The server is unwilling to risk processing a request that might be replayed.

429
Too Many Requests

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

431
Request Header Fields Too Large

The server refuses the request because the header fields are too large.

451
Unavailable For Legal Reasons

The resource is unavailable due to legal demands, such as government censorship.

5xx — Server Error

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 received an invalid response from the upstream server.

503
Service Unavailable

The server is temporarily unable to handle the request due to overload or maintenance.

504
Gateway Timeout

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

505
HTTP Version Not Supported

The server does not support the HTTP version used in the request.

507
Insufficient Storage

The server cannot store the representation needed to complete the request.

508
Loop Detected

The server detected an infinite loop while processing the request.

511
Network Authentication Required

The client needs to authenticate to gain network access, such as a captive portal.

Rate this tool
0.0 / 5 · 0 ratings

Embed This Calculator

Add this calculator to your website for free. Copy the single line of code below and paste it into your HTML. The calculator auto-resizes to fit your page.

<script src="https://calchammer.com/embed.js" data-calculator="http-status-code-reference" data-category="everyday"></script>
data-theme "light", "dark", or "auto"
data-values Pre-fill inputs, e.g. "amount=1000"
data-max-width Max width, e.g. "600px"
data-border "true" or "false"
Or use an iframe instead
<iframe src="https://calchammer.com/embed/everyday/http-status-code-reference" width="100%" height="500" style="border:none;border-radius:12px;" title="Http Status Reference Calculator"></iframe>

Preview

yoursite.com/blog
Http Status Reference Calculator auto-resizes here
Ad (in_results)

Entendiendo los Códigos de Estado HTTP

Los códigos de estado HTTP son números de tres dígitos que un servidor devuelve en respuesta a cada solicitud HTTP. Son parte de la especificación HTTP y proporcionan una forma estandarizada para que los servidores comuniquen el resultado de una solicitud al cliente. Cuando visita una página web, su navegador envía una solicitud HTTP al servidor, y el servidor responde con un código de estado junto con el contenido solicitado o un mensaje de error. Comprender estos códigos es fundamental para el desarrollo web, el diseño de APIs, la administración de servidores y la depuración de problemas de red.

Los códigos de estado se agrupan en cinco clases según su primer dígito. Cada clase representa un tipo diferente de respuesta. Los códigos 1xx son informativos, indicando que la solicitud fue recibida y el procesamiento continúa. Los códigos 2xx señalan éxito, significando que la solicitud fue recibida, entendida y aceptada. Los códigos 3xx indican redirección, diciéndole al cliente que tome acciones adicionales para completar la solicitud. Los códigos 4xx representan errores del cliente, donde la solicitud contiene sintaxis incorrecta o no puede ser cumplida. Los códigos 5xx indican errores del servidor, donde el servidor no pudo cumplir una solicitud válida.

Ad (in_content)

Las Cinco Categorías de Códigos de Estado

Respuestas Informativas 1xx

Las respuestas informativas indican que el servidor ha recibido la solicitud y continúa procesándola. La más notable es 100 Continue, que le dice al cliente que proceda a enviar el cuerpo de la solicitud después de enviar solo los encabezados. Esto es útil para cargas grandes donde el cliente quiere verificar si el servidor aceptará la solicitud antes de transmitir una carga potencialmente grande. El 103 Early Hints es una adición más reciente que permite al servidor enviar encabezados preliminares antes de la respuesta final, permitiendo al navegador precargar hojas de estilo y scripts mientras el servidor prepara la respuesta principal.

Códigos de Éxito 2xx

Los códigos de éxito confirman que la solicitud fue procesada correctamente. El 200 OK es el más común, devuelto para solicitudes GET exitosas estándar. El 201 Created se usa cuando se ha creado un nuevo recurso, típicamente en respuesta a una solicitud POST. El 204 No Content indica éxito sin un cuerpo de respuesta, comúnmente usado para operaciones DELETE y acciones de API que no necesitan devolver datos. El 206 Partial Content soporta solicitudes de rango, permitiendo a los clientes descargar archivos grandes en fragmentos o reanudar descargas interrumpidas.

Redirección 3xx y Códigos de Error 4xx/5xx

Los códigos de redirección instruyen al cliente a buscar en otro lugar el recurso solicitado. La distinción entre 301 Moved Permanently y 302 Found es crítica para SEO, ya que los motores de búsqueda los tratan de manera diferente al pasar la autoridad de enlace. Los códigos de error del cliente en el rango 4xx cubren todo desde solicitudes malformadas (400) hasta fallos de autenticación (401, 403), recursos faltantes (404) y limitación de velocidad (429). Los códigos de error del servidor en el rango 5xx indican problemas en el lado del servidor, desde fallos generales (500) hasta respuestas de bad gateway (502) y no disponibilidad del servicio (503). Monitorear estos códigos ayuda a los equipos de operaciones a identificar y resolver problemas rápidamente.

Códigos de Estado Comunes en el Desarrollo de APIs

Las APIs RESTful dependen en gran medida de los códigos de estado para comunicar resultados. Una API bien diseñada usa 200 para lecturas exitosas, 201 para creaciones exitosas, 204 para eliminaciones exitosas, 400 para errores de validación, 401 para autenticación faltante, 403 para permisos insuficientes, 404 para recursos que no existen, 409 para conflictos como entradas duplicadas, 422 para solicitudes semánticamente inválidas y 429 para solicitudes con límite de velocidad. El uso consistente de códigos de estado hace que las APIs sean predecibles y más fáciles de integrar para los consumidores.

Preguntas Frecuentes

¿Qué son los códigos de estado HTTP?

Números de tres dígitos devueltos por servidores web que indican el resultado de una solicitud. Se agrupan en cinco clases: 1xx Informativo, 2xx Éxito, 3xx Redirección, 4xx Error del Cliente y 5xx Error del Servidor.

¿Qué significan los códigos de estado 4xx?

Los códigos 4xx indican errores del cliente. La solicitud estaba malformada, no autorizada o apuntaba a un recurso faltante. Ejemplos comunes incluyen 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found y 429 Too Many Requests.

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

301 es una redirección permanente que indica a navegadores y motores de búsqueda que actualicen sus URLs. 302 es una redirección temporal donde la URL original debe seguir usándose para futuras solicitudes. 301 transfiere la autoridad SEO de enlace; 302 no.

¿Qué es el código de estado HTTP 418?

Una broma del Día de los Inocentes del RFC 2324 que define el Hyper Text Coffee Pot Control Protocol. Una tetera devuelve 418 cuando se le pide preparar café. A pesar de ser humorístico, ha sido ampliamente implementado como Easter egg.

¿Cuándo debería usar una respuesta 204 No Content?

Use 204 para solicitudes exitosas que no necesitan un cuerpo de respuesta, como operaciones DELETE, actualizaciones exitosas donde el cliente ya tiene los datos y acciones de API de tipo disparar y olvidar.

Related Calculators

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and should not be considered professional expert advice. Consult a qualified professional before making decisions based on these calculations. See our full Disclaimer.