EllipseSynergie\ApiResponse\AbstractResponse::errorMethodNotAllowed PHP Method

errorMethodNotAllowed() public method

Generates a response with a 405 HTTP header and a given message.
public errorMethodNotAllowed ( string $message = 'Method Not Allowed', array $headers = [] ) : mixed
$message string
$headers array
return mixed
    public function errorMethodNotAllowed($message = 'Method Not Allowed', array $headers = [])
    {
        return $this->setStatusCode(405)->withError($message, static::CODE_METHOD_NOT_ALLOWED, $headers);
    }