416 Range Not Satisfiable
The 416 Range Not Satisfiable status code indicates the client made a request with a Content-Type or Content-Encoding that is unknown or invalid for the resource.
Writing responses (servers)
A request for a range is not satisfiable when the requested starting offset is past the end of the document. If the client has requested multiple ranges, the ranges not satisfiable may simply be ignored if the server can satisfy at least one range. If all of the ranges are not satisfiable, or if the client's only requested range is not satisfiable, the server may return 416 Range Not Satisfiable
.
Instead of producing an error, servers are allowed to simply ignore the Range request, and handle the GET request normally.
Emitting an error is preferable for situations where the document is long, and the client may not be interested in downloading the entire thing.
Reading responses (clients)
Given a 416 (Range Not Satisfiable) response, a client made a Range request for bytes that are not within the requested document. This may happen because the file changed on the server since the previous request; consider using If-Range to avoid this. Clients should clear their cache of any resources for the request-URI; and retry the download for the document once. If the error persists, manual intervention may be needed by the user and/or server operator.
Since Range requests are optional to support, servers may also simply ignore invalid Range requests, and treat them normally.
Overview table
- Name
- 416
- Message
- 416 Range Not Satisfiable
- Description
- The requested Range is not acceptable.
- Specification
- RFC 9110: HTTP Semantics §15.5.17. 416 Range Not Satisfiable