DevKits
206

Partial Content

2xx Success

Last updated:

The server is delivering only part of the resource due to a range header sent by the client.

Description

Response to a Range request. Used for resumable downloads and streaming (e.g. video seek). The Content-Range header identifies the byte range being returned.

When to use

Return 206 when serving byte ranges from large files. Required for HTML5 video seeking to work.

Specification

RFC 9110 §15.3.7

Examples

HTTP response
HTTP/1.1 206 Partial Content
Content-Type: application/json

{"ok":true}
Node.js (Express)
res.status(206).json({ error: "Partial Content" });
Go (net/http)
w.WriteHeader(http.StatusPartialContent)
Python (Flask)
return jsonify({"error": "Partial Content"}), 206

Related status codes

All 2xx codes