diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-09-02 17:57:04 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-09-02 17:57:04 +0100 |
commit | c7a7cdf7346c9268b1d4f483b31e1fdc39b6d7e0 (patch) | |
tree | 0981bb47e64f47f3a4e57b4010f5fcb4743824d0 /synapse/api/errors.py | |
parent | Test ratelimiter (diff) | |
download | synapse-c7a7cdf7346c9268b1d4f483b31e1fdc39b6d7e0.tar.xz |
Add ratelimiting function to basehandler
Diffstat (limited to 'synapse/api/errors.py')
-rw-r--r-- | synapse/api/errors.py | 1 |
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): |