Skip to content
UniKit

Códigos de estado HTTP

Referencia completa de los códigos de estado HTTP, de 1xx a 5xx, incluidos los no estándar como 418, 429, 451, 499 y 599, con búsqueda por código o palabra clave, filtro por categoría y copiado.

Se ejecuta en tu navegadorTodos los cálculos se hacen en tu navegador; tus datos no salen de este dispositivo.

Buscar códigos de estado

Total 65 códigos / 65

100ContinueEstándar

Explicación en inglésThe server received the request headers; the client should continue sending the body.

Significado en chino服务器已收到请求头,客户端应继续发送请求体。

101Switching ProtocolsEstándar

Explicación en inglésThe server is switching protocols as requested by the client.

Significado en chino服务器按客户端的 Upgrade 请求切换协议。

102ProcessingEstándar

Explicación en inglésWebDAV: the server has received the request and is still processing it.

Significado en chinoWebDAV:服务器已收到请求并正在处理,暂时没有响应。

103Early HintsEstándar

Explicación en inglésReturns resource hints before the final response.

Significado en chino在最终响应之前先返回资源预加载提示。

200OKEstándar

Explicación en inglésThe request succeeded and the response body carries the result.

Significado en chino请求成功,响应内容在正文里。

201CreatedEstándar

Explicación en inglésThe request succeeded and a new resource was created; Location usually points to it.

Significado en chino请求成功并创建了新资源,通常配合 Location 头返回新地址。

202AcceptedEstándar

Explicación en inglésThe request was accepted but processing is not finished yet.

Significado en chino请求已被接受但尚未处理完成,结果稍后可用。

203Non-Authoritative InformationEstándar

Explicación en inglésThe returned metadata comes from a proxy rather than the origin server.

Significado en chino返回的元信息来自代理,不是源服务器的最新版本。

204No ContentEstándar

Explicación en inglésThe request succeeded but there is no body to return.

Significado en chino请求成功但正文为空,常用于删除或提交后的响应。

205Reset ContentEstándar

Explicación en inglésThe client should reset the document view, for example a form.

Significado en chino请求成功,客户端应重置当前文档的视图(如表单)。

206Partial ContentEstándar

Explicación en inglésRange request: only a part of the resource is returned.

Significado en chino断点续传:只返回了资源的一部分。

207Multi-StatusEstándar

Explicación en inglésWebDAV: several sub-requests each carry their own status.

Significado en chinoWebDAV:多个子请求各有自己的状态码。

208Already ReportedEstándar

Explicación en inglésWebDAV: the members were already reported in an earlier part of the response.

Significado en chinoWebDAV:同一集合里的成员已经在前面的响应里报告过。

226IM UsedEstándar

Explicación en inglésThe server fulfilled the request using instance manipulations.

Significado en chino服务器已完成实例操纵,返回增量结果。

300Multiple ChoicesEstándar

Explicación en inglésThe resource has multiple representations and the client should choose one.

Significado en chino请求的资源有多种表示,需要客户端选择。

301Moved PermanentlyEstándar

Explicación en inglésThe resource moved permanently; search engines update their index.

Significado en chino资源永久重定向到新地址,搜索引擎会更新索引。

302FoundEstándar

Explicación en inglésTemporary redirect to another address.

Significado en chino资源临时重定向到另一个地址。

303See OtherEstándar

Explicación en inglésRedirect to another address, which should be fetched with GET.

Significado en chino重定向到另一个地址,并且应该改用 GET 获取结果。

304Not ModifiedEstándar

Explicación en inglésConditional cache hit: the resource is unchanged, use the local copy.

Significado en chino命中协商缓存,资源没有变化,直接使用本地副本。

305Use ProxyNo estándar

Explicación en inglésDeprecated: the resource must be accessed through a proxy.

Significado en chino已弃用:要求通过代理访问资源。

306UnusedNo estándar

Explicación en inglésDeprecated: a historical code that is reserved and unused.

Significado en chino已废弃:历史遗留的状态码,保留未用。

307Temporary RedirectEstándar

Explicación en inglésTemporary redirect that must keep the original request method.

Significado en chino临时重定向,但必须保持原来的请求方法。

308Permanent RedirectEstándar

Explicación en inglésPermanent redirect that must keep the original request method.

Significado en chino永久重定向,同样必须保持原来的请求方法。

400Bad RequestEstándar

Explicación en inglésThe request is malformed or the parameters are invalid.

Significado en chino请求语法错误或参数不合法,服务器无法处理。

401UnauthorizedEstándar

Explicación en inglésNot authenticated: sign in or provide valid credentials first.

Significado en chino未认证:需要先登录或提供有效的凭证。

402Payment RequiredEstándar

Explicación en inglésReserved; often used for APIs that require payment.

Significado en chino预留状态码,常被用于需要付费才能访问的场景。

403ForbiddenEstándar

Explicación en inglésAuthenticated but not allowed to access the resource.

Significado en chino已认证但没有访问权限。

404Not FoundEstándar

Explicación en inglésThe requested resource does not exist.

Significado en chino请求的资源不存在。

405Method Not AllowedEstándar

Explicación en inglésThe resource exists but does not support this HTTP method.

Significado en chino资源存在,但不支持这个请求方法。

406Not AcceptableEstándar

Explicación en inglésNo representation matches the Accept header.

Significado en chino无法返回符合 Accept 头要求的响应。

407Proxy Authentication RequiredEstándar

Explicación en inglésThe request must authenticate with the proxy first.

Significado en chino需要先通过代理服务器认证。

408Request TimeoutEstándar

Explicación en inglésThe server timed out waiting for the request.

Significado en chino服务器等待请求超时,客户端可以重试。

409ConflictEstándar

Explicación en inglésThe request conflicts with the current state of the resource.

Significado en chino请求与资源当前状态冲突,例如并发写入。

410GoneEstándar

Explicación en inglésThe resource existed but has been permanently removed.

Significado en chino资源曾经存在但已被永久删除。

411Length RequiredEstándar

Explicación en inglésThe Content-Length header is required.

Significado en chino缺少 Content-Length 头。

412Precondition FailedEstándar

Explicación en inglésA precondition such as If-Match failed.

Significado en chino条件请求的预置条件(If-Match 等)不满足。

413Content Too LargeEstándar

Explicación en inglésThe request body exceeds the size the server accepts.

Significado en chino请求体超过服务器允许的大小。

414URI Too LongEstándar

Explicación en inglésThe request URL is too long.

Significado en chino请求的 URL 太长。

415Unsupported Media TypeEstándar

Explicación en inglésThe media type of the request body is not supported.

Significado en chino请求体的媒体类型不被支持。

416Range Not SatisfiableEstándar

Explicación en inglésThe requested byte range cannot be satisfied.

Significado en chino请求的字节范围无法满足。

417Expectation FailedEstándar

Explicación en inglésThe expectation given in the Expect header cannot be met.

Significado en chinoExpect 头里的期望不能满足。

418I'm a teapotNo estándar

Explicación en inglésApril Fools code: the server is a teapot and cannot brew coffee.

Significado en chino愚人节彩蛋状态码:服务器是一把茶壶,不能煮咖啡。

421Misdirected RequestEstándar

Explicación en inglésThe request was directed at a server that cannot serve this host.

Significado en chino请求被发给了无法为该域名提供服务的服务器。

422Unprocessable ContentEstándar

Explicación en inglésThe request is well-formed but semantically invalid.

Significado en chino请求格式正确但语义有误,无法处理。

423LockedEstándar

Explicación en inglésWebDAV: the resource is locked.

Significado en chinoWebDAV:资源已被锁定。

424Failed DependencyEstándar

Explicación en inglésWebDAV: the request failed because a previous request failed.

Significado en chinoWebDAV:前置请求失败,本次请求无法完成。

425Too EarlyEstándar

Explicación en inglésThe server is unwilling to process a request that might be replayed.

Significado en chino服务器不愿处理可能被重放的早期请求。

426Upgrade RequiredEstándar

Explicación en inglésThe client should switch to another protocol.

Significado en chino需要升级到其他协议才能继续。

428Precondition RequiredEstándar

Explicación en inglésThe origin server requires the request to be conditional.

Significado en chino要求请求带上条件头,避免并发覆盖。

429Too Many RequestsEstándar

Explicación en inglésToo many requests in a short time: rate limited.

Significado en chino短时间内请求过多,已被限流,请稍后重试。

431Request Header Fields Too LargeEstándar

Explicación en inglésThe request header fields are too large.

Significado en chino请求头总大小超出限制。

451Unavailable For Legal ReasonsEstándar

Explicación en inglésThe resource cannot be provided for legal reasons.

Significado en chino因法律原因无法提供该资源。

499Client Closed RequestNo estándar

Explicación en inglésNon-standard (nginx): the client closed the connection before the response.

Significado en chino非标准(nginx):客户端在服务器响应前断开了连接。

500Internal Server ErrorEstándar

Explicación en inglésAn unexpected error occurred on the server.

Significado en chino服务器内部错误,通常是代码异常。

501Not ImplementedEstándar

Explicación en inglésThe server does not support the functionality required.

Significado en chino服务器不支持该请求需要的功能。

502Bad GatewayEstándar

Explicación en inglésThe gateway received an invalid response from the upstream server.

Significado en chino网关或代理从上游收到了无效响应。

503Service UnavailableEstándar

Explicación en inglésThe server is temporarily unavailable, for example overloaded or in maintenance.

Significado en chino服务暂时不可用,通常是过载或维护中。

504Gateway TimeoutEstándar

Explicación en inglésThe gateway timed out waiting for the upstream server.

Significado en chino网关等待上游响应超时。

505HTTP Version Not SupportedEstándar

Explicación en inglésThe HTTP protocol version used in the request is not supported.

Significado en chino服务器不支持请求使用的 HTTP 版本。

506Variant Also NegotiatesEstándar

Explicación en inglésTransparent content negotiation results in a circular reference.

Significado en chino内容协商配置错误,导致循环引用。

507Insufficient StorageEstándar

Explicación en inglésWebDAV: the server cannot store the representation needed.

Significado en chinoWebDAV:服务器存储空间不足。

508Loop DetectedEstándar

Explicación en inglésWebDAV: an infinite loop was detected while processing the request.

Significado en chinoWebDAV:处理请求时检测到死循环。

510Not ExtendedEstándar

Explicación en inglésFurther extensions to the request are required.

Significado en chino需要对请求做进一步扩展才能满足策略。

511Network Authentication RequiredEstándar

Explicación en inglésThe client needs to authenticate, for example on a captive portal.

Significado en chino需要先通过网络的认证(例如公共 Wi-Fi 登录)。

599Network Connect Timeout ErrorNo estándar

Explicación en inglésNon-standard: the proxy timed out connecting upstream.

Significado en chino非标准:代理连接上游超时(常见于 nginx 日志)。

Qué hace esta herramienta

  • Consultar un código de estado desconocido de una respuesta de API o de un registro lleno de 4xx/5xx y ver la frase estándar y qué implica para cliente y servidor.
  • Escribir documentación de API o una tabla de errores copiando las frases canónicas (404 Not Found, 429 Too Many Requests) en lugar de inventar las tuyas.
  • Comprobar de dónde salen los códigos no estándar al leer un access log de nginx: 499 y 599 son convenciones de nginx, no definiciones de la RFC.
  • Enseñar o aprender HTTP recorriendo las categorías 1xx–5xx, incluida la diferencia entre 401 (sin autenticar) y 403 (autenticado pero sin permiso).

Ejemplo

Entrada

404

Salida

404 Not Found (estándar)
Significado en chino: 请求的资源不存在。
Explicación en inglés: The requested resource does not exist.

Cada fila de resultado de la página son exactamente esas tres líneas: código y frase con la etiqueta «estándar / no estándar», luego el significado en chino y la explicación en inglés; el botón de copiar devuelve la línea simple 404 Not Found. Los dígitos se buscan primero de forma exacta y luego por prefijo: 404 devuelve esta única entrada y 4 lista los 30 códigos del rango 4xx. Para buscar por palabra escribe un término: «timeout» acierta en 408, 504 y 599.

Preguntas frecuentes

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

401 Unauthorized significa «aún sin autenticar»: el servidor envía una cabecera WWW-Authenticate que explica cómo autenticarse. 403 Forbidden significa que estás autenticado pero no autorizado, así que volver a iniciar sesión no ayuda. El nombre correcto de 401 sería Unauthenticated: el engañoso es una herencia de la especificación.

¿Cómo decido si la culpa es de un 4xx o de un 5xx?

Un 4xx indica que la petición está mal y repetirla sin cambios suele volver a fallar, así que corrige primero la petición. Un 5xx indica que el servidor falla, y el cliente puede reintentar con retroceso exponencial. El 502 y el 504 suelen originarse entre la puerta de enlace y el upstream, y tanto 429 como 503 llevan Retry-After indicando cuánto esperar.

¿Por qué 418, 499 y 599 están marcados como no estándar?

Porque no están en el registro de la IETF. 418 I'm a teapot es una broma del RFC 2324 del día de los inocentes de 1998, y 499 y 599 los define nginx (el cliente cerró antes, tiempo de espera del proxy hacia el upstream). Deberían aparecer en registros, no en el contrato de una API pública.

¿Por qué el 304 no tiene cuerpo de respuesta?

304 Not Modified es el resultado del caché condicional: el navegador pregunta con If-None-Match o If-Modified-Since, el servidor ve que el recurso no cambió y responde solo con 304 para que se use la copia local, ahorrando la transferencia. Por eso no lleva cuerpo y normalmente tampoco Content-Type.

¿Puedo buscar con una palabra en lugar de un número?

Sí. La entrada no numérica se compara sin distinguir mayúsculas en la frase, el significado en chino y la explicación en inglés, así que también funcionan términos chinos como „重定向“, „超时“ o „限流“. La entrada numérica usa coincidencia exacta y por prefijo, de modo que una cadena mixta como 4xx no encuentra nada.

Palabras clave:httpstatus code404500http statusrest

Herramientas similares