HTTP Error 代码释义表

1xx:信息

Code English of code Description
100 Continue 继续,客户端应继续其请求
101 Switching Protocols 切换协议。服务器根据客户端的请求切换协议。只能切换到更高级的协议,例如,切换到HTTP的新版本协议
    It indicates the protocol the server is switching to as requested by a client which sent the message including the Upgrade request header.|
    The server includes in this response an Upgrade response header to indicate the protocol it switched to. The process is described in detail in the article Protocol upgrade mechanism.

2xx:成功

Code English of code Description
200 OK 正常:请求已完成。
    It indicates that the request has succeeded.
201 Created 正常:请求成功并且服务器创建了新的资源。
    It indicates that the request has succeeded and has led to the creation of a resource.
    The new resource is effectively created before this response is sent back and the new resource is returned in the body of the message, its location being either the URL of the request, or the content of the Location header.
202 Accepted 正常:服务器已接受请求,但尚未处理。
    The new resource is effectively created before this response is sent back and the new resource is returned in the body of the message, its location being either the URL of the request, or the content of the Location header.
    202 is non-committal, meaning that there is no way for the HTTP to later send an asynchronous response indicating the outcome of processing the request. It is intended for cases where another process or server handles the request, or for batch processing.
203 Non-Authoritative Information 正常:服务器已成功处理了请求,但返回的信息可能来自另一来源。非授权信息。
204 No Content 正常:服务器成功处理了请求,但没有返回任何内容。
205 Reset Content 正常:服务器成功处理了请求,但没有返回任何内容。
206 Partial Content 正常:服务器成功处理了部分 GET 请求。

3xx:重定向

Code English of code Description
300 Multiple Choices 多种选择。请求的资源可包括多个位置,相应可返回一个资源特征与地址的列表用于用户终端(例如:浏览器)选择
301 Moved Permanently 已移动 — 请求的数据具有新的位置且更改是永久的。
302 Found 已找到 — 请求的数据临时具有不同 URI。
303 See Other 请参阅其它 — 可在另一 URI 下找到对请求的响应,且应使用 GET 方法检索此响应。
304 Not Modified 未修改 — 未按预期修改文档。
305 Use Proxy 使用代理 — 必须通过位置字段中提供的代理来访问请求的资源。
306 Unused 未使用 — 不再使用;保留此代码以便将来使用。
307 Temporary Redirect 临时重定向。与302类似。使用GET请求重定向

4xx:客户端出现的错误

表1:

Code English of Code Description
400 Bad Request 错误请求 — 请求中有语法问题,或不能满足请求。
401 Unauthorized 请求要求身份验证。 对于需要登录的网页,服务器可能返回此响应。
402 Payment Required 需要付款 — 表示计费系统已有效。
403 Forbidden 禁止 — 服务器拒绝请求。
404 Not Found 未找到 — 服务器找不到请求的网页。
405 Method Not Allowed 禁用 — 禁用请求中指定的方法。
406 Not Acceptable 不接受 — 无法使用请求的内容特性响应请求的网页。
407 Proxy Authentication Required 需要代理授权 — 此状态代码与 401(未授权)类似,但指定请求者应当授权使用代理。
408 Request Time-out 请求超时 — 服务器等候请求时发生超时。
409 Conflict 冲突 — 服务器在完成请求时发生冲突。 服务器必须在响应中包含有关冲突的信息。
410 Gone 已删除 — 如果请求的资源已永久删除,服务器就会返回此响应。
411 Length Required 需要有效长度 — 服务器不接受不含有效内容长度标头字段的请求。
412 Precondition Failed 未满足前提条件 — 服务器未满足请求者在请求中设置的其中一个前提条件。
413 Request Entity Too Large 请求实体过大 — 服务器无法处理请求,因为请求实体过大,超出服务器的处理能力。
414 Request-URI Too Large 请求的 URI 过长 — 请求的 URI(通常为网址)过长,服务器无法处理。
415 Unsupported Media Type 不支持的媒体类型 — 请求的格式不受请求页面的支持。
416 Requested range not satisfiable 请求范围不符合要求 — 如果页面无法提供请求的范围,则服务器会返回此状态代码。
417 Expectation Failed 未满足期望值 — >服务器未满足”期望”请求标头字段的要求。

表2:

Code English of Code Description
401.1   未授权:登录失败
401.2   未授权:服务器配置问题导致登录失败
401.3   ACL 禁止访问资源
401.4   未授权:授权被筛选器拒绝
401.5   未授权:ISAPI 或 CGI 授权失败
403.1   禁止访问:禁止可执行访问
403.2   禁止访问:禁止读访问
403.3   禁止访问:禁止写访问
403.4   禁止访问:要求 SSL
403.5   禁止访问:要求 SSL 128
403.6   禁止访问:IP 地址被拒绝
403.7   禁止访问:要求客户证书
403.8   禁止访问:禁止站点访问
403.9   禁止访问:连接的用户过多
403.10   禁止访问:配置无效
403.11   禁止访问:密码更改
403.12   禁止访问:映射器拒绝访问
403.13   禁止访问:客户证书已被吊销
403.15   禁止访问:客户访问许可过多
403.16   禁止访问:客户证书不可信或者无效
403.17   禁止访问:客户证书已经到期或者尚未生效
404.1   无法找到 Web 站点

5xx:服务端出现的错误

Code English of Code Description
500 Internal Server Error 服务器内部错误 — 服务器遇到错误,无法完成请求。
501 Not Implemented 尚未实施 — 服务器不具备完成请求的功能。 例如,服务器无法识别请求方法时可能会返回此代码。
502 Bad Gateway 错误网关 — 服务器作为网关或代理,从上游服务器收到无效响应。
503 Service Unavailable 服务不可用 — 服务器目前无法使用(由于超载或停机维护)。 通常,这只是暂时状态。
504 Gateway Time-out 网关超时 — 服务器作为网关或代理,但是没有及时从上游服务器收到请求。
505 HTTP Version not supported HTTP 版本不受支持 — 服务器不支持请求中所用的 HTTP 协议版本。