Accept-Ranges Byte Serving — Range Request and Partial Content Download Errors
Warning2xx success
Overview
Fix HTTP range request errors including 416 Range Not Satisfiable, partial content download failures, and video/audio streaming seeking issues.
Key Details
- Accept-Ranges: bytes indicates the server supports partial content downloads via Range requests
- Clients use Range: bytes=0-1023 to request specific byte ranges of a resource
- Server responds with 206 Partial Content and Content-Range header for successful range requests
- Video and audio streaming relies on range requests for seeking within media files
- 416 Range Not Satisfiable is returned when the requested range is outside the content bounds
Common Causes
- Server not supporting range requests — missing Accept-Ranges header
- CDN stripping Range headers or not forwarding partial content responses
- Range request specifying bytes beyond the end of the file
- Dynamic content that cannot be served in byte ranges due to unknown content length
Steps
- 1Add Accept-Ranges: bytes header to responses for static files, media, and large downloads
- 2Handle Range header in your application: parse the byte range and return 206 with Content-Range header
- 3Return 416 Range Not Satisfiable with Content-Range: bytes */total-size for invalid ranges
- 4Configure your CDN to forward Range headers and cache partial content responses
- 5Test range requests: 'curl -r 0-1023 -o partial.dat https://your-server.com/largefile.zip'
Tags
range-requestpartial-content206byte-servingstreaming
More in 2xx Success
http-200-okHTTP 200 OK — What It Means & How to Fix It
Informationalhttp-201-createdHTTP 201 Created — What It Means & How to Fix It
Informationalhttp-202-acceptedHTTP 202 Accepted — What It Means & How to Fix It
Informationalhttp-203-non-authoritative-informationHTTP 203 Non-Authoritative Information — What It Means & How to Fix It
Informationalhttp-204-no-contentHTTP 204 No Content — What It Means & How to Fix It
Informationalhttp-205-reset-contentHTTP 205 Reset Content — What It Means & How to Fix It
InformationalFrequently Asked Questions
Video seeking requires the server to support range requests. Check that the server sends Accept-Ranges: bytes header and correctly handles Range request headers to return 206 Partial Content.