惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Exploit Database - CXSecurity.com
A
Arctic Wolf
K
Kaspersky official blog
T
Threat Research - Cisco Blogs
PCI Perspectives
PCI Perspectives
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
U
Unit 42
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy & Cybersecurity Law Blog
O
OpenAI News
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Cisco Blogs
AWS News Blog
AWS News Blog
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
美团技术团队
T
Threatpost
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Cyber Attacks, Cyber Crime and Cyber Security
Last Week in AI
Last Week in AI
C
CERT Recently Published Vulnerability Notes
Blog — PlanetScale
Blog — PlanetScale
C
Cybersecurity and Infrastructure Security Agency CISA
F
Full Disclosure
博客园_首页
N
Netflix TechBlog - Medium
Security Latest
Security Latest
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Register - Security
The Register - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Recent Announcements
Recent Announcements
博客园 - Franky
P
Palo Alto Networks Blog
Project Zero
Project Zero
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Cisco Talos Blog
Cisco Talos Blog
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 【当耐特】
GbyAI
GbyAI

Https - 分类 - cywhat's blog

暂无文章

HTTP各个status code代表什么意思
cywhat · 2019-03-08 · via Https - 分类 - cywhat's blog

计算机之间的通信以协议为共同基础,客户端和服务端都按照协议的约定进行通信。HTTP的状态码就在HTTP的协议内,规定了很多的状态。客户端请求服务端后,服务端就返回结果,同时返回状态码。告诉客户端,本次请求是成功了还是失败了,还是要客户端做什么操作。那为什么不使用文本状态码呢?不是更加清晰直观吗?这是因为这些状态协议里面已经规定了,提到状态码,就是表示本条状态。

状态码说明

状态码分为1-5开头的CODE,以下依次说明,请仔细阅读噢

1** 类状态码称之为Information 状态吗,表示信息正在处理。

2** 类状态码称为为Success状态码,表示请求正常完成。

3** 类状态码称之为Redirection 状态码,表示需要客户端进行附加操作(如跳转。重定向)

4** 类状态码称之为Error状态码,通常是由于客户端的错误导致的。

5** 类状态吗称为Server Error状态码,通常是服务端的错误导致的。

小结下:状态码分为客户端错误状态码、服务端错误状态码、成功状态码,重定向状态码等。

1&2

1** 不常见到哈,直接从2开始讲了

200(ok)示从客户端成功发出去请求到服务端了,服务端也接收到了这条请求并正确返回

204 No Content 请求已经成功了,但是却没有返回任何结果(实体)。通常使用php die() exit()函数会引发204状态码

206 Partial Content 范围请求状态码。

3

301 Moved Permanently 表示你请求的页面资源现在已经转移位置了,你需要到新的地方去需找该页面。这个即重定向,服务器的response首部里会有location字段值来提示。

302(Found)301差不多。表示你请求的页面资源现在已经转移位置了,你要到新的地方去寻找。但是新的地方也不是固定的,说不定过几天还要换。不提示用户保存书签,提示用户跳转。

303 See other .表示你请求的页面中包含着你想要拿到资源的地址。比如你到门卫处去取快递,到了门卫处,大爷说快递已经交给前台了。这个过程会返回303状态码。

304 Not Modified 表示资源已经找到了,但是和上次相比没有更新。浏览器读取缓存。

307 Temporary Redirect 临时重定向。

4

400 Bad Request 报文语法错误。

401 Unauthorized 需要通过HTTP认证(BASIC 或者DIGEST).

403 Forbidden 目录、文件权限错误都会报此状态码。

404 服务器上无此资源,一般情况为路径错误。

5

500 Internal Server Error 服务端错误,有可能是WEB应用存在错误。

502 Internal Server Error服务端错误,有可能是服务端服务以及停止运行。

503 Serveice Unavailable 服务器超负荷运行。

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏