Skip to content

38.HTTP状态码及其含义 #38

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
webVueBlog opened this issue Mar 15, 2020 · 1 comment
Open

38.HTTP状态码及其含义 #38

webVueBlog opened this issue Mar 15, 2020 · 1 comment
Labels
HTTP HTTP

Comments

@webVueBlog
Copy link
Member

1XX:信息状态码

100 Continue 继续,一般在发送post请求时,已发送了http header之后服务端将返回此信息,表示确认,之后发送具体参数信息

2XX:成功状态码

200 OK 正常返回信息
201 Created 请求成功并且服务器创建了新的资源
202 Accepted 服务器已接受请求,但尚未处理

3XX:重定向

301 Moved Permanently 请求的网页已永久移动到新位置。
302 Found 临时性重定向。
303 See Other 临时性重定向,且总是使用 GET 请求新的 URI。
304 Not Modified 自从上次请求后,请求的网页未修改过。

4XX:客户端错误

400 Bad Request 服务器无法理解请求的格式,客户端不应当尝试再次使用相同的内容发起请求。
401 Unauthorized 请求未授权。
403 Forbidden 禁止访问。
404 Not Found 找不到如何与 URI 相匹配的资源。

5XX: 服务器错误

500 Internal Server Error 最常见的服务器端错误。
503 Service Unavailable 服务器端暂时无法处理请求(可能是过载或维护)。

@webVueBlog webVueBlog added the HTTP HTTP label Mar 15, 2020
@webVueBlog
Copy link
Member Author

1XX: information status code

100 Continue, and generally when a post request is sent, the server will return this information after the HTTP header has been sent, indicating confirmation, and then send the specific parameter information

2XX: success status code

200 OK returns information normally
The 201 Created request succeeds and the server creates the new resource
202 Accepted the request but has not yet been processed by the Accepted server

3XX: redirect

The page 301 Moved Permanently to the new location requested.
302 Found temporary redirect.
303 See Other temporary redirection, and always use GET to request a new URI.
The requested web page has Not been Modified since the last request.

4XX: client error

The Bad Request server cannot understand the format of the Request, and the client should not attempt to make a Request with the same content again.
401 Unauthorized requests are not authorized.
403 Forbidden to access.
404 Not Found cannot find a resource that matches a URI.

5XX: server error

The most common server-side errors are 500 Internal Server errors.
503 the Service Unavailable server side is temporarily unable to process the request (it may be overloaded or maintenance).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
HTTP HTTP
Projects
None yet
Development

No branches or pull requests

1 participant