src/Leevel/Router/ResponseFactory.php
public function apiForbidden(?string $message = null, ?string $text = null): ApiResponse
    {
        return $this->createApiResponse()->forbidden($message, $text);
    }
public function apiForbidden(?string $message = null, ?string $text = null): ApiResponse
    {
        return $this->createApiResponse()->forbidden($message, $text);
    }
禁止
服务器拒绝请求: 403.

@param string $message
@param string $text

@return \Leevel\Http\ApiResponse