Skip to content

206 Partial Content — Meaning, Common Causes & How to Fix

206 2xx Success RFC 9110 §15.3.7

206 Partial Content means: The server is delivering only part of the resource, as requested by a Range header. It powers resumable downloads, video seeking and parallel chunked fetching; the Content-Range header describes which bytes arrived. Success 2xx codes confirm the request was received, understood and accepted. The family distinguishes what kind of success happened — content returned, resource created, work queued, or nothing to return — and choosing the precise code is part of a well-designed API contract that clients and caches can rely on. In practice you will meet 206 when a download manager resumes an interrupted transfer with range: bytes=n-; a video player seeks by requesting a byte range of the media file; a client splits a large file into parallel range requests. On the client side, send Range headers, validate Content-Range, and reassemble chunks in order; fall back to a full GET if the server ignores ranges. On the server side, support Range with correct Content-Range and Accept-Ranges headers; return 416 when the range is unsatisfiable and 200 when you choose to ignore the range.

Advertisement
Ad slot · ref-top

When 206 happens

  • A download manager resumes an interrupted transfer with Range: bytes=N-
  • A video player seeks by requesting a byte range of the media file
  • A client splits a large file into parallel range requests

How to fix it

On the client

Send Range headers, validate Content-Range, and reassemble chunks in order; fall back to a full GET if the server ignores ranges.

On the server

Support Range with correct Content-Range and Accept-Ranges headers; return 416 when the range is unsatisfiable and 200 when you choose to ignore the range.

Should you retry?

Success — nothing to retry.

Debugging steps

When 206 appears unexpectedly, start by capturing the full exchange: 'curl -i' or the browser DevTools Network tab shows the exact status line and response headers, which often carry the real explanation. Success codes rarely need debugging, but verify the body semantics match the code — a 200 wrapping an error payload is an API design bug, not a transport problem. For this code specifically, check whether the most common trigger applies to your situation: a download manager resumes an interrupted transfer with range: bytes=n-. Compare your exchange against the raw HTTP example above. If you operate the server, correlate the timestamp with application and proxy logs using the request id; if you are the client, verify the request shape against the API documentation before changing anything or retrying.

Notes & gotchas

Advertise Accept-Ranges: bytes on full responses so clients know they can resume and seek; without it, download managers fall back to restarting from zero.

Examples

Raw HTTP
HTTP/1.1 206 Partial Content
Content-Range: bytes 0-1023/2048
Accept-Ranges: bytes
Content-Length: 53

[binary content: bytes 0-1023 of the requested range]
curl
curl -i -H "Range: bytes=0-1023" https://cdn.example.com/media/file.mp4
JavaScript (fetch)
const res = await fetch("https://api.example.com/v1/resource");
if (res.ok) {
  const data = await res.json(); // 206 Partial Content
  return data;
}
Python (requests)
import requests

res = requests.get("https://api.example.com/v1/resource", timeout=10)
res.raise_for_status()
data = res.json()  # 206 Partial Content

Frequently asked questions

What does Content-Range look like?

Content-Range: bytes 0-1023/2048 means this response carries bytes 0 through 1023 of a 2048-byte resource.

Why does my video not seek?

Seeking needs byte-range support. If the server answers every Range request with a full 200, players cannot jump to arbitrary positions.

Which 2xx code should my API return?

200 for a normal result, 201 when a resource was created (with Location), 202 when work is queued, 204 when there is nothing to return. Precision here makes clients, caches and monitors behave correctly.

Can I treat any 2xx as interchangeable success?

For 'did it work' yes, but the distinctions matter operationally: 201 means a resource exists, 202 means work is still pending, 204 means there is no body to parse. Code that ignores them breaks.

Advertisement
Ad slot · ref-in-article

Try the JSON Validator

Check JSON syntax and locate errors by line and column.

Open tool →