MethodNotAllowedHttpException

MethodNotAllowedHttpException

class MethodNotAllowedHttpException extends HttpException

MethodNotAllowedHttpException.

Methods

__construct(array $allow, $message = null, Exception $previous = null, $code)

Constructor.

int getStatusCode()

Returns the status code.

from HttpException
array getHeaders()

Returns response headers.

from HttpException

Details

__construct(array $allow, $message = null, Exception $previous = null, $code)

Constructor.

Parameters

array $allow An array of allowed methods
$message
Exception $previous
$code

int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code

array getHeaders()

Returns response headers.

Return Value

array Response headers
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部