Zend\Mvc\Controller\AbstractRestfulController::options PHP Method

options() public method

Typically, set the Allow header with allowed HTTP methods, and return the response. Not marked as abstract, as that would introduce a BC break (introduced in 2.1.0); instead, raises an exception if not implemented.
public options ( ) : mixed
return mixed
    public function options()
    {
        $this->response->setStatusCode(405);
        return ['content' => 'Method Not Allowed'];
    }