summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-01-14 17:21:04 +0000
committerDavid Baker <dave@matrix.org>2016-01-14 17:21:04 +0000
commit3f8db3d597dc631af02c31995426a3690746c8b5 (patch)
treefb23cbf9573ae74b7cf7b4846369efa45e385297 /synapse/api
parentMerge pull request #497 from matrix-org/erikj/max_limit (diff)
downloadsynapse-3f8db3d597dc631af02c31995426a3690746c8b5.tar.xz
Add specific error code for invalid user names.
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/errors.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py
index be0c58a4ca..e6d32acced 100644
--- a/synapse/api/errors.py
+++ b/synapse/api/errors.py
@@ -42,6 +42,7 @@ class Codes(object):
     EXCLUSIVE = "M_EXCLUSIVE"
     THREEPID_AUTH_FAILED = "M_THREEPID_AUTH_FAILED"
     THREEPID_IN_USE = "THREEPID_IN_USE"
+    INVALID_USER_NAME = "M_INVALID_USER_NAME"
 
 
 class CodeMessageException(RuntimeError):