title | slug | page-type | spec-urls |
---|---|---|---|
416 Range Not Satisfiable |
Web/HTTP/Status/416 |
http-status-code |
{{HTTPSidebar}}
The HTTP 416 Range Not Satisfiable
client error response status code indicates that a server could not serve the requested ranges.
The most likely reason for this response is that the document doesn't contain such ranges, or that the {{HTTPHeader("Range")}} header value, though syntactically correct, doesn't make sense.
The 416
response message should contain a {{HTTPHeader("Content-Range")}} indicating an unsatisfied range (that is a '*'
) followed by a '/'
and the current length of the resource, e.g., Content-Range: bytes */12777
When encountering this error, browsers typically either abort the operation (for example, a download will be considered non-resumable) or request the whole document again without ranges.
416 Range Not Satisfiable
The following request asks for a range of 1000-1999 bytes from a text file. The first position unit (1000) is larger than the actual resource on the server (800 bytes):
GET /files/prose.txt HTTP/1.1
Host: example.com
Range: bytes=1000-1999
The server supports range requests and sends back the current length of the selected representation in the {{HTTPHeader("Content-Range")}} header:
HTTP/1.1 416 Range Not Satisfiable
Date: Fri, 28 Jun 2024 11:40:58 GMT
Content-Range: bytes */800
{{Specifications}}
- HTTP response status codes
- {{HTTPStatus("206", "206 Partial Content")}}
- HTTP range requests
- {{HTTPHeader("Content-Range")}}
- {{HTTPHeader("Range")}}