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
Interfaces, Classes and Traits
- ExceptionInterface
- ExceptionInterface.
Table of Contents
- $allowedMethods : mixed
- __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|null $message = '' ], int $code[, Throwable|null $previous = null ]) : mixed
Parameters
- $allowedMethods : array<string|int, string>
- $message : string|null = ''
- $code : int
- $previous : Throwable|null = null
Return values
mixed —getAllowedMethods()
Gets the allowed HTTP methods.
public
getAllowedMethods() : array<string|int, string>