416 Range Not Satisfiable

416 Range Not Satisfiable

When the server responds with the HTTP status code 416 Range Not Satisfiable, it means that the client’s request for specific data ranges cannot be fulfilled.

You can Check Your URLs HTTP Code for FREE

Introduction
In Action
Sample
Conclusion

Introduction

When the server responds with the HTTP status code 416 Range Not Satisfiable, it means that the client’s request for specific data ranges cannot be fulfilled.

The requested ranges do not overlap with the available data on the server, making the retrieval impossible for the given resource. This error is usually encountered when trying to access portions of a file or resource that are outside its existing range.

In Action

When the server returns the HTTP status code 416 Range Not Satisfiable, it means the client’s request for partial content, using the Content-Range header, cannot be fulfilled. If the requested range of bytes goes beyond the length of the sequence, this error occurs.

This error is often encountered during large file transfers, where clients download files in chunks using Content-Range headers, allowing them to download the file in any order.

If the server can satisfy the request and return at least one of the requested ranges as a subset of the resource, it will return 206 Partial Content to indicate success.

Sample

In the example, the client asks the server for bytes 1000 through 2000 of a resource, but the server can’t fulfill this request since the resource is only 512 bytes long. As a result, the server sends back the 416 Range Not Satisfiable error message.

The client can use the information provided by the server, such as the total size of the resource, to adjust the request and try again with a valid range that falls within the available data.

Request

GET /documents/main HTTP/1.1
Host: www.example.com
Content-Range: bytes=1000-2000

Response

HTTP/1.1 416 Range Not Satisfiable
Content-Range: bytes */512

Alternative response – Server chooses to ignore range

HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 512

< entire 512 bytes in message body>

Conclusion

In conclusion, the 416 Range Not Satisfiable error occurs when a client requests a specific range of data from a server, but the requested range does not exist in the resource.

This status code indicates that the server cannot fulfill the partial content request, and the client may need to adjust the range or request the complete resource instead.

Related articles

999 Request Denied

999 Request Denied The 999 HTTP response status code is...

599 Network Connect Timeout Error

599 Network Connect Timeout Error The 599 HTTP response status...

598 Network read timeout error

598 Network read timeout error The 598 HTTP response status...

561 Unauthorized

561 Unauthorized The 561 HTTP response status code means there...

530 Site Frozen

530 Site Frozen The 530 HTTP response status code is...

999 Request Denied

0
999 Request Denied The 999 HTTP response status code is an unofficial catch-all error code returned...

599 Network Connect Timeout Error

0
599 Network Connect Timeout Error The 599 HTTP response status code indicates a timeout when trying...

598 Network read timeout error

0
598 Network read timeout error The 598 HTTP response status code indicates a timeout occurred during...

561 Unauthorized

0
561 Unauthorized The 561 HTTP response status code means there was an authentication failure. You can Check...

530 Site Frozen

0
530 Site Frozen The 530 HTTP response status code is a specialized server error used by...