src/Leevel/Router/ResponseFactory.php
public function apiUnauthorized(?string $message = null, ?string $text = null): ApiResponse
    {
        return $this->createApiResponse()->unauthorized($message, $text);
    }
public function apiUnauthorized(?string $message = null, ?string $text = null): ApiResponse
    {
        return $this->createApiResponse()->unauthorized($message, $text);
    }
未授权
对于需要登录的网页，服务器可能返回此响应: 401.

@param string $message
@param string $text

@return \Leevel\Http\ApiResponse