2018-08-27 23:22:27 +08:00

38 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- TOC -->
- [Http常见状态码](#http常见状态码)
- [http 和 https 的区别](#http-和-https-的区别)
<!-- /TOC -->
# Http常见状态码
2XX 成功
200 OK表示从客户端发来的请求在服务器端被正确处理
204 No content表示请求成功但响应报文不含实体的主体部分
206 Partial Content进行范围请求
3XX 重定向
301 moved permanently永久性重定向表示资源已被分配了新的 URL
302 found临时性重定向表示资源临时被分配了新的 URL
303 see other表示资源存在着另一个 URL应使用 GET 方法丁香获取资源
304 not modified表示服务器允许访问资源但因发生请求未满足条件的情况
307 temporary redirect临时重定向和302含义相同
4XX 客户端错误
400 bad request请求报文存在语法错误
401 unauthorized表示发送的请求需要有通过 HTTP 认证的认证信息
403 forbidden表示对请求资源的访问被服务器拒绝
404 not found表示在服务器上没有找到请求的资源
5XX 服务器错误
500 internal sever error表示服务器端在执行请求时发生了错误
503 service unavailable表明服务器暂时处于超负载或正在停机维护无法处理请求
# http 和 https 的区别