HTTP 300 Multiple Choices vs 416 Range Not Satisfiable
HTTP 300 (Multiple Choices) is a 3xx Redirection response, while 416 (Range Not Satisfiable) is a 4xx Client Error response. 300 indicates that the request has more than one possible response. The client should choose one of them. In contrast, 416 means that the server cannot serve the requested byte range. The Range header value is outside the resource's size.
Description
The request has more than one possible response. The client should choose one of them.
When You See It
When a resource is available in multiple formats (e.g., different languages or media types).
How to Fix
Select the appropriate resource variant. Send an Accept header with your preferred content type.
Description
The server cannot serve the requested byte range. The Range header value is outside the resource's size.
When You See It
When requesting a byte range beyond the file's actual size.
How to Fix
Check the Content-Range in the response for the actual file size and adjust your Range header.
Key Differences
300 is a 3xx Redirection response, while 416 is a 4xx Client Error response.
HTTP 300: The request has more than one possible response. The client should choose one of them.
HTTP 416: The server cannot serve the requested byte range. The Range header value is outside the resource's size.
You encounter 300 when when a resource is available in multiple formats (e.g., different languages or media types).
You encounter 416 when when requesting a byte range beyond the file's actual size.
When to Use Which
For 300 (Multiple Choices): Select the appropriate resource variant. Send an Accept header with your preferred content type. For 416 (Range Not Satisfiable): Check the Content-Range in the response for the actual file size and adjust your Range header.