206Status code
2xxSuccess
YesCacheable by default
RFC 9110 §15.3.7Defined in
Common causes
- Video and audio seeking
- Resumed downloads
- Download managers fetching chunks in parallel
What to do
Make sure Content-Range and Accept-Ranges: bytes are correct, or players cannot seek.
Example response
HTTP/1.1 206 Partial Content Content-Range: bytes 0-1023/146515 Content-Length: 1024 Accept-Ranges: bytes
Returning 206 in code
Express res.status(206).json({ … });
Flask return jsonify(…), 206
PHP http_response_code(206);
Go w.WriteHeader(206)