206 Partial Content
The HTTP
206 Partial Content successful response status code is sent in response to a range request.
The response body contains the requested ranges of data as specified in the Range header of the request.The format of the response depends on the number of ranges requested.
If a single range is requested, the
Content-Type of the entire response is set to the type of the document, and a Content-Range is provided.
If several ranges are requested, the Content-Type is set to multipart/byteranges, and each fragment covers one range, with its own Content-Range and Content-Type headers describing it.Status
Examples
Receiving a 206 response for a single requested range
The following is a sample
206 response when a single range of 21010- (bytes 21010 to the end of file) of an image file is requested.
The response contains Content-Type of image/gif and the Content-Range is provided:Receiving a 206 response for multiple requested ranges
Following is a sample
206 response when two ranges of a PDF file are requested.
The response contains the multipart/byteranges Content-Type with a separate Content-Type (application/pdf) and Content-Range for each range.Specifications
| Specification |
|---|
| HTTP Semantics # status.206 (external) |

