summary refs log tree commit diff
path: root/synapse/api/errors.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-08-14 13:47:39 +0100
committerKegan Dougal <kegan@matrix.org>2014-08-14 13:47:39 +0100
commit61933f8e5278fda03e34eb25b729dd6a3987b6ab (patch)
tree18723b3f6cebeecef31be925f66b9c97353d72aa /synapse/api/errors.py
parentBF: Use ng-src (diff)
downloadsynapse-61933f8e5278fda03e34eb25b729dd6a3987b6ab.tar.xz
Added M_UNKNOWN_TOKEN error code and send it when there is an unrecognised access_token
Diffstat (limited to 'synapse/api/errors.py')
-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 b5970c959b..21ededc5ae 100644
--- a/synapse/api/errors.py
+++ b/synapse/api/errors.py
@@ -27,6 +27,7 @@ class Codes(object):
     BAD_PAGINATION = "M_BAD_PAGINATION"
     UNKNOWN = "M_UNKNOWN"
     NOT_FOUND = "M_NOT_FOUND"
+    UNKNOWN_TOKEN = "M_UNKNOWN_TOKEN"
 
 
 class CodeMessageException(Exception):