EllipseSynergie\ApiResponse\AbstractResponse::errorForbidden PHP Method

errorForbidden() public method

Generates a response with a 403 HTTP header and a given message.
public errorForbidden ( string $message = 'Forbidden', array $headers = [] ) : mixed
$message string
$headers array
return mixed
    public function errorForbidden($message = 'Forbidden', array $headers = [])
    {
        return $this->setStatusCode(403)->withError($message, static::CODE_FORBIDDEN, $headers);
    }