summary refs log tree commit diff
path: root/synapse/api/errors.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-20 15:47:36 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-20 15:47:36 +0000
commit83ff0562280a006eccb36dbe129da3f87e7ddd4b (patch)
tree6ffdb790d6ff6d9034d4e8f6c7093b0a8d403de6 /synapse/api/errors.py
parentMerge pull request #5794 from matrix-org/erikj/share_ssl_options_for_well_known (diff)
parentChange user deactivated errcode to USER_DEACTIVATED and use it (#5686) (diff)
downloadsynapse-83ff0562280a006eccb36dbe129da3f87e7ddd4b.tar.xz
Change user deactivated errcode to USER_DEACTIVATED and use it (#5686)
Diffstat (limited to 'synapse/api/errors.py')
-rw-r--r--synapse/api/errors.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py

index c293135b51..d160df0bfd 100644 --- a/synapse/api/errors.py +++ b/synapse/api/errors.py
@@ -62,6 +62,7 @@ class Codes(object): INCOMPATIBLE_ROOM_VERSION = "M_INCOMPATIBLE_ROOM_VERSION" WRONG_ROOM_KEYS_VERSION = "M_WRONG_ROOM_KEYS_VERSION" EXPIRED_ACCOUNT = "ORG_MATRIX_EXPIRED_ACCOUNT" + USER_DEACTIVATED = "M_USER_DEACTIVATED" PASSWORD_TOO_SHORT = "M_PASSWORD_TOO_SHORT" PASSWORD_NO_DIGIT = "M_PASSWORD_NO_DIGIT" PASSWORD_NO_UPPERCASE = "M_PASSWORD_NO_UPPERCASE" @@ -159,7 +160,7 @@ class UserDeactivatedError(SynapseError): msg (str): The human-readable error message """ super(UserDeactivatedError, self).__init__( - code=http_client.FORBIDDEN, msg=msg, errcode=Codes.UNKNOWN + code=http_client.FORBIDDEN, msg=msg, errcode=Codes.USER_DEACTIVATED )