Nexus API Reference

MethodNotAllowedException extends HttpException
in package

FinalYes
Tags
psalm-api

Table of Contents

Properties

$allowed  : array<string|int, mixed>
$headers  : array<string|int, mixed>
$status  : int

Methods

__construct()  : mixed
conflict()  : self
forbidden()  : self
notFound()  : self
unauthorized()  : self
unprocessableEntity()  : self

Properties

$headers read-only

public array<string|int, mixed> $headers = []

Methods

__construct()

public __construct(string $method, string $path, array<int, string> $allowed) : mixed
Parameters
$method : string
$path : string
$allowed : array<int, string>

conflict()

public static conflict([string $message = 'Conflict' ]) : self
Parameters
$message : string = 'Conflict'
Return values
self

forbidden()

public static forbidden([string $message = 'Forbidden' ]) : self
Parameters
$message : string = 'Forbidden'
Return values
self

notFound()

public static notFound([string $message = 'Not Found' ]) : self
Parameters
$message : string = 'Not Found'
Return values
self

unauthorized()

public static unauthorized([string $message = 'Unauthorized' ]) : self
Parameters
$message : string = 'Unauthorized'
Return values
self

unprocessableEntity()

public static unprocessableEntity(array<string, string> $errors) : self
Parameters
$errors : array<string, string>
Return values
self

        
On this page

Search results