summary refs log tree commit diff
path: root/synapse/api/errors.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-09-02 17:57:04 +0100
committerMark Haines <mark.haines@matrix.org>2014-09-02 17:57:04 +0100
commitc7a7cdf7346c9268b1d4f483b31e1fdc39b6d7e0 (patch)
tree0981bb47e64f47f3a4e57b4010f5fcb4743824d0 /synapse/api/errors.py
parentTest ratelimiter (diff)
downloadsynapse-c7a7cdf7346c9268b1d4f483b31e1fdc39b6d7e0.tar.xz
Add ratelimiting function to basehandler
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 21ededc5ae..3f33ca5b92 100644
--- a/synapse/api/errors.py
+++ b/synapse/api/errors.py
@@ -28,6 +28,7 @@ class Codes(object):
     UNKNOWN = "M_UNKNOWN"
     NOT_FOUND = "M_NOT_FOUND"
     UNKNOWN_TOKEN = "M_UNKNOWN_TOKEN"
+    LIMIT_EXCEEDED = "M_LIMIT_EXCEEDED"
 
 
 class CodeMessageException(Exception):