HTTP 416 Range Not Satisfiable
HTTP 416 Range Not Satisfiable means the server rejected the ranges requested for a resource. The ranges might fall outside its current size or include an excessive set of small or overlapping ranges.
Check the current length
If a client requests Range: bytes=9000- and the current file contains 8000 bytes, the server can return 416. A byte-range error should include a value such as Content-Range: bytes */8000 to report the current length.
Validate the file before resuming
Compare the ETag or other validator with the partial download. A replacement can have a different size and content. Restart the download if the saved portion belongs to an older representation. If a proxy path alone fails, compare the returned length and validators across paths. A satisfiable range typically returns 206.
Test an offset against the actual file
Suppose a client kept the first 6000 bytes of an older download. The publisher replaces the file with a 5000-byte version. A request for Range: bytes=6000- now falls outside the selected file, and Content-Range: bytes */5000 can explain the 416. Start a fresh download after you confirm the validator changed. When using a range response to assemble a larger file, check the returned start, end and representation identity before appending its bytes.
Check the representation chosen through the proxy
Keep the download URL and the request’s encoding preferences fixed when comparing a direct fetch with a proxied fetch. Inspect the final response after any redirect because the route may serve a different file version or encoded representation. If a server ignores the Range request, it can send the complete content in a 200 OK response. A 206 Partial Content response confirms that the server applied a range. Compare the status, content range and validator together before deciding whether to resume.