http状态码

200

OK - 请求成功。客户端可以在正文和响应的标头中读取请求的结果。

201

Created - 请求已完成并导致创建新资源。

202

Accepted - 请求已被接受处理,但处理尚未完成。

204

无内容 - 请求已成功,但未返回消息正文。

304

未修改。请参阅条件请求

400

错误请求 - 由于语法错误,服务器无法理解请求。消息正文将包含更多信息;请参阅响应架构

401

未授权 - 请求需要用户身份验证,或者,如果请求包含授权凭据,则拒绝对这些凭据进行授权。

403

禁止 - 服务器理解请求,但拒绝执行。

404

Not Found - 找不到请求的资源。此错误可能是由于临时或永久条件造成的。

429

请求过多 -已应用速率限制。

500

内部服务器错误。您永远不会收到此错误,因为我们聪明的编码人员会全部捕获……但如果您不幸遇到此错误,请通过本页底部的评论向我们报告。

502

网关错误 - 服务器充当网关或代理,并从上游服务器收到无效响应。

503

服务不可用 - 由于临时情况,服务器当前无法处理请求,延迟一段时间后会缓解。您可以选择重新发送请求。

   428状态码是可选的;客户不能依靠它的使用来
   防止“丢失更新”冲突
   429 请求过多

   当服务器受到攻击或刚刚接收到非常大的数字时
   来自单方的请求,以 429 状态响应每个请求
   代码会消耗资源。

   因此,服务器不需要使用 429 状态码;什么时候
   限制资源使用,直接drop可能更合适
   连接,或采取其他步骤。
   
    431 请求标头字段太大

   服务器不需要使用 431 状态码;下时
   攻击,它可能更适合只是断开连接,或者采取
   其他步骤。
   
   
- 1xx: Informational - Request received, continuing process
- 2xx: Success - The action was successfully received,
        understood, and accepted
- 3xx: Redirection - Further action must be taken in order to
        complete the request
- 4xx: Client Error - The request contains bad syntax or cannot
        be fulfilled
- 5xx: Server Error - The server failed to fulfill an apparently
        valid request 
  "100"  ; Section 10.1.1: Continue
| "101"  ; Section 10.1.2: Switching Protocols
| "200"  ; Section 10.2.1: OK
| "201"  ; Section 10.2.2: Created
| "202"  ; Section 10.2.3: Accepted
| "203"  ; Section 10.2.4: Non-Authoritative Information
| "204"  ; Section 10.2.5: No Content
| "205"  ; Section 10.2.6: Reset Content
| "206"  ; Section 10.2.7: Partial Content
| "300"  ; Section 10.3.1: Multiple Choices
| "301"  ; Section 10.3.2: Moved Permanently
| "302"  ; Section 10.3.3: Found
| "303"  ; Section 10.3.4: See Other
| "304"  ; Section 10.3.5: Not Modified
| "305"  ; Section 10.3.6: Use Proxy
| "307"  ; Section 10.3.8: Temporary Redirect
| "400"  ; Section 10.4.1: Bad Request
| "401"  ; Section 10.4.2: Unauthorized
| "402"  ; Section 10.4.3: Payment Required
| "403"  ; Section 10.4.4: Forbidden
| "404"  ; Section 10.4.5: Not Found
| "405"  ; Section 10.4.6: Method Not Allowed
| "406"  ; Section 10.4.7: Not Acceptable

| "407"  ; Section 10.4.8: Proxy Authentication Required
| "408"  ; Section 10.4.9: Request Time-out
| "409"  ; Section 10.4.10: Conflict
| "410"  ; Section 10.4.11: Gone
| "411"  ; Section 10.4.12: Length Required
| "412"  ; Section 10.4.13: Precondition Failed
| "413"  ; Section 10.4.14: Request Entity Too Large
| "414"  ; Section 10.4.15: Request-URI Too Large
| "415"  ; Section 10.4.16: Unsupported Media Type
| "416"  ; Section 10.4.17: Requested range not satisfiable
| "417"  ; Section 10.4.18: Expectation Failed
| "500"  ; Section 10.5.1: Internal Server Error
| "501"  ; Section 10.5.2: Not Implemented
| "502"  ; Section 10.5.3: Bad Gateway
| "503"  ; Section 10.5.4: Service Unavailable
| "504"  ; Section 10.5.5: Gateway Time-out
| "505"  ; Section 10.5.6: HTTP Version not supported

  • 21
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值