SUBSCRIBE TO OUR BLOG

    The 416 status code is a specific HTTP response code 416 that occurs when a client requests a range of data that a server cannot provide. When you request specific portions of a file or resource using range headers, and those portions are not available, the server returns this error response code 416. 

    This situation commonly occurs during file downloads or when streaming media content. The 416 range not satisfiable indicates that none of the requested ranges overlap with the available data on the server.

    What Causes the 416 Range Not Satisfiable

    Several factors can trigger a 416 response code. The most common cause is when the requested range is not satisfiable or any other server because the range specified exceeds the actual resource size. 

    Another cause is malformed range headers where the starting byte position is greater than the ending position. 

    The 416 status code can also occur during interrupted downloads when trying to resume from an invalid position or when the resource has been modified or replaced with a smaller version since the initial request.

    Example

    Request:

    GET /example.pdf HTTP/2.0
    
    Host: example.com
    
    Range: bytes=4000-5000
    

    Response:

    HTTP/2.0 Range Not Satisfiable 416 
    
    Content-Range: bytes */2000
    

    In this example, the client requests bytes 4000-5000 of a PDF file, but the server returns an HTTP response code 416 because the file is only 2000 bytes in size. The Content-Range header in the response shows */2000, where the asterisk indicates an unsatisfiable range, and 2000 represents the actual file size. 

    Reseller Club Hosting Services

    Reseller Hosting | Windows Reseller Hosting | Cloud Hosting | VPS Hosting | Managed VPS Hosting | Dedicated Server Hosting | Windows Dedicated Server | Managed Dedicated Server | Linux Shared Hosting | Windows Shared Hosting