diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-12-11 14:19:32 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-12-11 14:19:32 +0000 |
commit | d80d505b1f70eae128990ce1a9517e5c5edead73 (patch) | |
tree | eeec77127889207fae0b44b5e95360cd953ee202 /synapse/api/errors.py | |
parent | doc the thumbnail methods (diff) | |
download | synapse-d80d505b1f70eae128990ce1a9517e5c5edead73.tar.xz |
Limit the size of images that are thumbnailed serverside. Limit the size of file that a server will download from a remote server
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 581439ceb3..e250b9b211 100644 --- a/synapse/api/errors.py +++ b/synapse/api/errors.py @@ -34,6 +34,7 @@ class Codes(object): LIMIT_EXCEEDED = "M_LIMIT_EXCEEDED" CAPTCHA_NEEDED = "M_CAPTCHA_NEEDED" CAPTCHA_INVALID = "M_CAPTCHA_INVALID" + TOO_LARGE = "M_TOO_LARGE" class CodeMessageException(Exception): |