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

@param string $message
@param string $text

@return $this