Add errors.EPAYWALL.

This commit is contained in:
Ethan Dalool 2020-11-05 16:34:08 -08:00
parent 3fa60a3e3e
commit 97d1467210

View file

@ -124,6 +124,9 @@ class EAPPKEY(RequestError):
code = -22 code = -22
message = 'Invalid application key; request not processed' message = 'Invalid application key; request not processed'
class EPAYWALL(RequestError):
code = -29
message = 'Over Disk Quota Paywall is blocking this operation'
_CODE_TO_CLASSES = { _CODE_TO_CLASSES = {
-1: EINTERNAL, -1: EINTERNAL,
@ -148,6 +151,7 @@ _CODE_TO_CLASSES = {
-20: EWRITE, -20: EWRITE,
-21: EREAD, -21: EREAD,
-22: EAPPKEY, -22: EAPPKEY,
-29: EPAYWALL,
} }
def error_for_code(code): def error_for_code(code):