HumHub Documentation (unofficial)

RangeNotSatisfiableHttpException extends HttpException
in package

RangeNotSatisfiableHttpException represents an exception caused by an improper request of the end-user.

This exception thrown when the requested range is not satisfiable: the client asked for a portion of the file (byte serving), but the server cannot supply that portion. For example, if the client asked for a part of the file that lies beyond the end of the file.

Throwing an RangeNotSatisfiableHttpException like in the following example will result in the error page with error 416 to be displayed.

Tags
author

Zalatov Alexander CaHbKa.Z@gmail.com

since
2.0.11

Table of Contents

Properties

$statusCode  : int

Methods

__construct()  : mixed
Constructor.
getName()  : string

Properties

$statusCode

public int $statusCode

HTTP status code, such as 403, 404, 500, etc.

Methods

__construct()

Constructor.

public __construct([string|null $message = null ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string|null = null

error message

$code : int = 0

error code

$previous : Throwable|null = null

The previous exception used for the exception chaining.

getName()

public getName() : string
Return values
string

the user-friendly name of this exception


        
On this page

Search results