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 NotAllowedException

The method received in the request-line is known by the origin server but not supported by the target resource.

The origin server MUST generate an Allow header field in a 405 response containing a list of the target resource's currently supported methods.

A 405 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls1.

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