Path: blob/main/files/en-us/web/http/headers/content-range/index.md
6532 views
------{{HTTPSidebar}}
The Content-Range response HTTP header indicates where in a full body message a partial message belongs.
| Header type | {{Glossary("Response header")}}, {{Glossary("Payload header")}} |
|---|---|
| {{Glossary("Forbidden header name")}} | no |
| {{Glossary("Simple response header", "CORS-safelisted response-header")}} | no |
Syntax
Directives
<unit>
: The unit in which ranges are specified. This is usually
bytes.
<range-start>
: An integer in the given unit indicating the start position (zero-indexed & inclusive) of the request range.
<range-end>
: An integer in the given unit indicating the end position (zero-indexed & inclusive) of the requested range.
<size>
: The total length of the document (or
'*'if unknown).
Examples
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{HTTPHeader("If-Range")}}
{{HTTPHeader("Range")}}
{{HTTPHeader("Content-Type")}}
{{HTTPStatus("206")}}
Partial Content{{HTTPStatus("416")}}
Range Not Satisfiable