[HTTP] Understand 2xx HTTP Status Code Responses
The 2xx family of status codes are used in HTTP responses to indicate success. Beyond the generic 200 OK
status 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:
相关文章
- 微信绑定用户服务端代码-根据code获取openId然后绑定用户
- Visual Studio Code + live-server编辑和浏览HTML网页
- Code Complete-13/7/29
- [HTTP] Understand 2xx HTTP Status Code Responses
- loadrunner12 添加请求头token,Error -26630: HTTP Status-Code=401 (Unauthorized) for XXX
- php类库PHP QR Code 二维码
- C++ code:数值计算之辛普生(Simpson)法求解积分问题
- 解决kaniko push镜像到harbor时报错(代理导致):unexpected status code 503 Service Unavailable
- 使用ABAP创建QR Code(二维码)
- why we see different http status code like 404, 500. where are they handled
- 另一种无法enable ABAP source code tool的原因
- 【【henuacm2016级暑期训练】动态规划专题 D】Writing Code
- 踩坑-git clone报错 error: RPC failed;result=52, HTTP code = 0 fatal: The remote end hung up unexpectedly
- 【Leet Code】String to Integer (atoi) ——常考类型题
- http code:502 Bad Gateway
- Github在开启2FA(双重身份验证)的时候Country- code 没有中国区+86的解决办法
- 【HPC】Intel SIMD技术——如何用code检查你的CPU支持哪些指令集?