「HTTP」- 状态码 | Status Code

RFC7231 | 更多内容,参考 6. Response status code 章节 | https://tools.ietf.org/html/rfc7231#section-6

测试地址:http://httpstat.us/

HTTP 状态码(HTTP Status Code)是服务器响应状态的 3 位数字码,用于向客户端返回操作结果。

1XX (Informational)请求被接收
100 Continue 请求被接收,继续执行。

2XX (Successful)请求成功
200 OK 成功,有响应消息体。
201 Created 资源创建成功,在 location 域中包含有新建资源的 URI。
204 No Content 成功,无应答消息体。

3XX (Redirection)进一步操作需要被执行
301 Moved Permanently 目标资源被分配了新的 URI,且未来的资源都会关联到新的 URI。
307 Temporary Redirect https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/307

4XX (Client Error)请求错误
400 Bad Request 请求消息体错误,消息体中携带有错误描述。
401 Unauthorized 授权失败,例如证书不匹配。
403 Forbidden 禁止访问,可能的原因是:用户试图执行权限之外的操作或登录用户名密码错误。
404 Not Found 找不到请求的资源。
444 typically indicates that the server has returned no response to the client and closed the connection.

5XX (Server Error)服务端错误
500 Internal Server Error 服务器内部错误,不能执行此请求,用户需要稍后重新发送请求。
501 Not Implemented 功能未实现。