Overview

Namespaces

  • DSchoenbauer
    • Exception
      • Http
        • ClientError
        • ServerError
      • Platform

Exceptions

  • BadRequestException
  • ClientErrorException
  • ConflictException
  • ForbiddenException
  • NotAllowedException
  • NotFoundException
  • PayloadTooLargeException
  • PaymentRequiredException
  • UnauthorizedException
  • UnavailableForLegalReasonsException
  • UnprocessableEntityException
  • UnsupportedMediaType
  • UpgradeRequiredException
  • Overview
  • Namespace
  • Class

Class UnauthorizedException

The request has not been applied because it lacks valid authentication credentials for the target resource.

The server generating a 401 response MUST send a WWW-Authenticate header field1 containing at least one challenge applicable to the target resource.

If the request included authentication credentials, then the 401 response indicates that authorization has been refused for those credentials. The user agent MAY repeat the request with a new or replaced Authorization header field2. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user agent SHOULD present the enclosed representation to the user, since it usually contains relevant diagnostic information.

Exception
Extended by RuntimeException
Extended by DSchoenbauer\Exception\Platform\RuntimeException implements DSchoenbauer\Exception\ExceptionInterface
Extended by DSchoenbauer\Exception\Http\ClientError\ClientErrorException implements DSchoenbauer\Exception\Http\HttpExceptionInterface
Extended by DSchoenbauer\Exception\Http\ClientError\UnauthorizedException
Namespace: DSchoenbauer\Exception\Http\ClientError
Author: David Schoenbauer dschoenbauer@gmail.com
Since: 1.0.0
Link: Source
Located at Exception/Http/ClientError/UnauthorizedException.php
Methods summary
public
# __construct( $message = "" )
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen