def _server_error_handler(self, code: int):
        """处理500~599段状态码,抛出对应警告.

        Parameters:
            (code): - 响应的状态码

        Return:
            (bool): - 已知的警告类型则返回True,否则返回False

        Raise:
            (ServerException): - 当返回为服务异常时则抛出对应异常

        """
        if code == 501:
            self._login_fut.set_result(False)
        else:
            self.clean()
            raise abort(code)
        return True
处理500~599段状态码,抛出对应警告.

        Parameters:
            (code): - 响应的状态码

        Return:
            (bool): - 已知的警告类型则返回True,否则返回False

        Raise:
            (ServerException): - 当返回为服务异常时则抛出对应异常