Does HTTP 206 Mean Your Report Download Is Complete?

A report downloader receives a successful HTTP response and saves the body as the finished file. The file opens partially or fails near its end. The status was 206: the server successfully returned a range, not necessarily the entire representation.
Completion needs a definition beyond a successful response. A client using range requests must know which bytes it received, whether they belong to the expected version, and whether all required bytes are present before releasing the file.
Read the status in its intended context
RFC 9110 describes 206 Partial Content as a successful response to a range request. It requires clients to inspect Content-Type and Content-Range information to determine what is included. Content-Length in such a response usually describes the response content, not the entire representation.
Therefore, a downloader should not use a generic success check as its only completion rule. The same response can be successful at transferring one part and insufficient for producing the complete report.
An illustrative two-part file
Suppose a test representation contains 1,000 bytes. One response covers bytes 0 through 499, inclusive. That is 500 bytes, not 499. Another response covers bytes 500 through 999, also 500 bytes.
Together, these ranges cover the intended representation without a gap. Receiving bytes 0 through 499 twice still transfers 1,000 bytes in total, but it does not complete the file. A sum of received byte counts cannot replace coverage tracking.
Define the download state explicitly
Keep the expected representation identity, known total length when available, received ranges, and completion status. Use the server's documented validators and range behavior to avoid combining portions from different versions.
If the report changes between requests, stop treating the assembled bytes as one confirmed representation. Follow the integration's documented restart or validation procedure. A filename staying the same does not establish that the underlying content stayed unchanged.
Review responses before appending content
A server may return a full representation rather than the requested partial response. The client must inspect the actual status and headers and handle the result appropriately, rather than blindly appending it to existing bytes.
Multipart range responses also need parsing according to their content type and boundaries. Do not assume every 206 body is a single contiguous chunk that can be appended directly to a file.
Build a compact failure fixture
Test a complete two-range download, a repeated range, a gap, an overlapping range, and a changed representation. Include a response whose declared range and body length do not agree.
For each case, write whether the file should remain incomplete, restart, or become available. Use a small synthetic file with known content so the reviewer can inspect exact boundaries without needing a production report.
Verify the assembled result before handoff
Check coverage and expected length, then apply any available integrity verification for the complete file. A supplied checksum can provide evidence that the assembled bytes match the intended artifact, provided the expected checksum itself comes from an appropriate source.
Keep the incomplete artifact separate from the location used by downstream readers. A process that discovers a final-looking filename should not have to guess whether the download is still being assembled.
Report completion at the correct level
A useful log distinguishes a range received from a full file verified. If completion cannot be established, report the unresolved range or identity issue and retain enough state for an authorized recovery.
This review does not promise that every server supports resumable downloads or a particular validator. It gives the team a concrete acceptance question: can the downloader demonstrate complete, consistent coverage before presenting the report as ready?
Continue with Does a Matching File Checksum Prove You Received the Right Document? for the related planning decision.
The published FutureOS introduction describes the project as being in prelaunch. Use this guide to prepare a concrete project discussion; it does not announce an available FutureOS feature.
Prepared with AI assistance. Primary sources checked on October 25, 2026. Examples and procedures are illustrative editorial guidance, not FutureOS product announcements or an independently reviewed assessment.


Comments