MethodNotAllowedException
extends RuntimeException
in package
implements
ExceptionInterface
The resource was found but the request method is not allowed.
This exception should trigger an HTTP 405 response in your application code.
Tags
Table of Contents
Interfaces
- ExceptionInterface
- ExceptionInterface.
Properties
- $allowedMethods : mixed
Methods
- __construct() : mixed
- getAllowedMethods() : array<string|int, string>
- Gets the allowed HTTP methods.
Properties
$allowedMethods
protected
mixed
$allowedMethods
= []
Methods
__construct()
public
__construct(array<string|int, string> $allowedMethods[, string $message = '' ][, int $code = 0 ][, Throwable $previous = null ]) : mixed
Parameters
- $allowedMethods : array<string|int, string>
- $message : string = ''
- $code : int = 0
- $previous : Throwable = null
getAllowedMethods()
Gets the allowed HTTP methods.
public
getAllowedMethods() : array<string|int, string>