Skip to content

206 Partial Content (HTTP Status Code 206)

Updated: at 09:12 AM

HTTP status code 206 “Partial Content” indicates that the server has successfully processed a partial GET request and returned the requested data range to the client. This status is commonly used for implementing resume functionality for interrupted downloads or for downloading large files in chunks. When a client sends a GET request with the Range header, the server responds with the corresponding portion of the content and includes the Content-Range field in the response header to indicate the range of content being returned.

Example Use Case

For instance, if a client requests a specific part of a video file, the server can respond with a 206 status code and send only the requested video segment. This approach reduces the amount of data transmitted over the network and improves efficiency.

Key Considerations When Using 206 Partial Content:

Additionally, if the client uses the If-Range header to request partial content, the server will verify whether the resource has been modified and then decide whether to return a 206 Partial Content or a 200 OK status code.

Common Applications of 206 Partial Content

The 206 status code is frequently used for scenarios such as segmented loading of video and audio streams, downloading large files, and lazy loading of images.