UnauthorizedHttpException

class UnauthorizedHttpException extends HttpException

UnauthorizedHttpException.

Methods

__construct(string $challenge, $message = null, Exception $previous = null, $code)

Constructor.

int getStatusCode()

Returns the status code.

from HttpException
array getHeaders()

Returns response headers.

from HttpException

Details

__construct(string $challenge, $message = null, Exception $previous = null, $code)

Constructor.

Parameters

string $challenge WWW-Authenticate challenge string
$message
Exception $previous
$code

int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code

array getHeaders()

Returns response headers.

Return Value

array Response headers

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/HttpKernel/Exception/UnauthorizedHttpException.html