[HTTP] Understand 2xx HTTP Status Code Responses
2017-05-26 15:23
176 查看
The 2xx family of status codes are used in HTTP responses to indicate success. Beyond the generic
Difference between 201 and 202:
Both for post request, difference is 201 means successfully create new data on the server, it will return 'Location' prop in the header.
For 202, "Accepted", mean the request was accepted, but the data is not immedicatly available, there is no location prop:
206: Partial content, it is useful when we want to continue downloading the file , it tells how many bytes has been downloaded, and the total number of bytes:
200 OKstatus code, there are a set of more specific success status codes that provide additional context or details about the specific nature of the successful request/response. We will explore the available success status codes, and what additional information they convey.
Difference between 201 and 202:
Both for post request, difference is 201 means successfully create new data on the server, it will return 'Location' prop in the header.
For 202, "Accepted", mean the request was accepted, but the data is not immedicatly available, there is no location prop:
206: Partial content, it is useful when we want to continue downloading the file , it tells how many bytes has been downloaded, and the total number of bytes:
相关文章推荐
- HTTP Status Code
- C#在异常中获取HttpStatusCode用法
- Http status code
- Http StatusCode意义
- 利用Node.js为Node.js生成HttpStatusCode辅助类并发布到npm
- How to fix “HTTP Status Code 505 – HTTP Version Not Supported” error?--转
- HTTP status code
- HTTP/1.1: Status Code Definitions-12029
- HTTP Status Code速查
- HTTP Response Status Code -- HTTP响应代码中文详解
- http statusCode(状态码) 200、300、400、500序列
- Http status code 状态码
- nginx统计响应的http状态码信息(ngx-http-status-code-counter)
- HTTP协议状态码详解(HTTP Status Code)
- http状态码大全(HTTP Status Code)
- Action(8):Error-26608:HTTP Status-Code=504(Gateway Time-out)
- Status Code Definitions - Http 状态码
- springmvc @RequestParam 获取参数 HTTP Status 400 - Required String parameter 'xx' is not present
- HTTP status code is not handled or not allowed的解决方法