HumHub Documentation (unofficial)

NotAcceptableHttpException extends HttpException
in package

NotAcceptableHttpException represents a "Not Acceptable" HTTP exception with status code 406.

Use this exception when the client requests a Content-Type that your application cannot return. Note that, according to the HTTP 1.1 specification, you are not required to respond with this status code in this situation.

Tags
see
https://tools.ietf.org/html/rfc7231#section-6.5.6
author

Dan Schmidt danschmidt5189@gmail.com

since
2.0

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