VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Playback & technology

Why video requests return HTTP 206 Partial Content

If your video request returns 206 Partial Content, check the status, Range request and Content-Range response before diagnosing playback.

A continuous strip of video tile images results in a small player; one turquoise tile is elevated.
A partial retrieval delivers the requested data segment. The illustration does not depict any measured transmission.Image: Vioneto · AI-generated illustration

206 Partial Content is a successful HTTP status for a partial response. For a video, the browser can request a specific byte range instead of downloading the entire file with every request. The term "Partial" on its own does not indicate a corrupted upload.

What browsers and servers exchange

A request can specify a desired range in the Range header. If the server returns this as a separate partial response, the Content-Range header describes the included byte positions and the total size. The standard RFC 9110 defines the 206 status code for this scenario. This can, for example, help with targeted retrieval of file segments; however, it does not guarantee that a specific player will correctly decode each image later.

RFC 9110: Meaning and Structure of a 206 Response

A standalone calculation example with 1,000 bytes

For the calculation, use a fictional file of 10,000 bytes. The browser requests bytes from 0 to 999 inclusive with Range: bytes=0-999. This covers 1,000 bytes, not 999. A suitable single response can therefore include HTTP 206 Partial Content, Content-Range: bytes 0-999/10000, and Content-Length: 1000.

The first number after the slash is not a percentage: 10000 represents the total length. The content length of 1000 refers only to the transmitted portion. This example illustrates the header structure; it is not a recording of a Vioneto download, and this small file would not represent a realistic film. When multiple ranges are present within a response, the packaging differs.

Handle 200 and 416 responses differently

200 OK can mean that the full response is returned, for example because the server does not take the range request into account. This is not automatically an error. In contrast, 416 Range Not Satisfiable indicates that the requested range cannot be served. Instead of simply replacing 206 with 200, compare the request with the current file size.

MDN: Partial requests, response headers, and status codes

Limit stuttering MP4 playback

  1. Open the browser's network inspection panel and restart the affected process. Select the specific media request; a thumbnail or the HTML page is a different resource.
  2. Record the status, the Range request header and the Content-Range response header if present. Check that the reported limits and lengths correspond to the individual range.
  3. Assign the observation to a specific time point: Does the first attempt fail, result in a backward jump, or only a later position succeed? Simply delivering a successful part does not explain the entire sequence.
  4. When an error occurs, compare the affected file with a known working version in the same environment. Provide the relevant headers and playback position to the responsible team; remove access tokens from any shared screenshots.

Byte ranges are not chapters and do not correspond to predefined time segments. You cannot directly determine a film minute from a retrieval of specific bytes without additional knowledge of the file format. Even segmented streaming protocols and their individual files are not required to respond to every request with a 206 status code.

If the partial fetches make sense, the next logical question is about the file structure or output format. The placement of MP4 metadata and the comparison between HLS and MP4 are separate investigations. A single status code does not replace this check.

What faststart does to MP4 files

Compare HLS and MP4 on the same clip

Topics

Sources and further reading

  1. https://www.rfc-editor.org/rfc/rfc9110.html#section-15.3.7
  2. https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Range_requests