commit 1a8a85fe33c3b333905cac638f4b25f7388cae3f parent 583e8c61984ff6393676bc7dc9c0f71af9c5725d Author: archiveanon <> Date: Sat, 28 Oct 2023 05:17:47 +0000 Add discovered error results Diffstat:
M | src/gofile/api.py | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/gofile/api.py b/src/gofile/api.py @@ -33,6 +33,14 @@ class GofileStatus(enum.Enum): # happens if a folderId was provided without the correct owner ERROR_OWNER = "error-owner" + # token is invalid + # either a malformed token was initially provided or the guest token expired + ERROR_TOKEN = "error-token" + + # token is not associated with a premium user + # as the API notes, guest tokens cannot access the API methods marked as premium + ERROR_NOT_PREMIUM = "error-notPremium" + class GofileServerResult(msgspec.Struct): server: str