Skip to content

Commit

Permalink
feat: http状态码补充
Browse files Browse the repository at this point in the history
  • Loading branch information
xjq7 committed Apr 29, 2022
1 parent e205350 commit c287882
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions HTTP.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@
简单版
[
100 Continue 继续,一般在发送post请求时,已发送了http header之后服务端将返回此信息,表示确认,之后发送具体参数信息
200 OK 正常返回信息
201 Created 请求成功并且服务器创建了新的资源
202 Accepted 服务器已接受请求,但尚未处理
301 Moved Permanently 请求的网页已永久移动到新位置。
302 Found 临时性重定向。
303 See Other 临时性重定向,且总是使用 GET 请求新的 URI。
304 Not Modified 自从上次请求后,请求的网页未修改过。
400 Bad Request 服务器无法理解请求的格式,客户端不应当尝试再次使用相同的内容发起请求。
401 Unauthorized 请求未授权。
403 Forbidden 禁止访问。
404 Not Found 找不到如何与 URI 相匹配的资源。
500 Internal Server Error 最常见的服务器端错误。
503 Service Unavailable 服务器端暂时无法处理请求(可能是过载或维护)。
200 OK 正常返回信息
201 Created 请求成功并且服务器创建了新的资源
202 Accepted 服务器已接受请求,但尚未处理
204 No Content 请求处理成功, 但无内容响应
301 Moved Permanently 请求的网页已永久移动到新位置。
302 Found 临时性重定向, GET请求时跟307相同,POST 请求一些旧客户端会转成 GET 请求。
303 See Other 临时性重定向,且总是使用 GET 请求新的 URI。
304 Not Modified 自从上次请求后,请求的网页未修改过。
307 Temporary Redirect 临时性重定向, 请求方法和消息主体不会变化
400 Bad Request 服务器无法理解请求的格式,客户端不应当尝试再次使用相同的内容发起请求。
401 Unauthorized 请求未授权。
403 Forbidden 禁止访问。
404 Not Found 找不到如何与 URI 相匹配的资源。
500 Internal Server Error 最常见的服务器端错误。
502 Bad Gateway 网关从上游服务器接收到的响应无效, 上游服务器挂了或者响应超时等原因引起
503 Service Unavailable 服务器端暂时无法处理请求(可能是过载或维护)。
]
```

Expand Down

0 comments on commit c287882

Please sign in to comment.