HTTP 206 Partial Content vs 207 Multi-Status
Both HTTP 206 (Partial Content) and 207 (Multi-Status) belong to the 2xx Success category. 206 indicates that the server is delivering only part of the resource due to a Range header sent by the client. Used for resumable downloads and video streaming. Meanwhile, 207 means that the response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).
Mô tả
The server is delivering only part of the resource due to a Range header sent by the client. Used for resumable downloads and video streaming.
Khi bạn thấy mã này
During video streaming, large file downloads, or when resuming interrupted downloads.
Cách khắc phục
No fix needed. This is normal behavior for range requests.
Mô tả
The response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).
Khi bạn thấy mã này
In WebDAV operations that affect multiple resources simultaneously.
Cách khắc phục
Parse the XML body to check the status of each individual resource.
Sự khác biệt chính
HTTP 206: The server is delivering only part of the resource due to a Range header sent by the client. Used for resumable downloads and video streaming.
HTTP 207: The response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).
You encounter 206 when during video streaming, large file downloads, or when resuming interrupted downloads.
You encounter 207 when in WebDAV operations that affect multiple resources simultaneously.
Khi nào dùng cái nào
For 206 (Partial Content): No fix needed. This is normal behavior for range requests. For 207 (Multi-Status): Parse the XML body to check the status of each individual resource.