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 UnavailableForLegalReasonsException

Intended to be used when resource access is denied for legal reasons, e.g. censorship or government-mandated blocked access. A reference to the 1953 dystopian novel Fahrenheit 451, where books are outlawed, and the autoignition temperature of paper, 451°F.

The server is denying access to the resource as a consequence of a legal demand.

The server in question might not be an origin server. This type of legal demand typically most directly affects the operations of ISPs and search engines.

Responses using this status code SHOULD include an explanation, in the response body, of the details of the legal demand: the party making it, the applicable legislation or regulation, and what classes of person and resource it applies to.

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\UnavailableForLegalReasonsException
Namespace: DSchoenbauer\Exception\Http\ClientError
Author: David Schoenbauer dschoenbauer@gmail.com
Since: 1.0.0
Link: Source
Located at Exception/Http/ClientError/UnavailableForLegalReasonsException.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