summary refs log tree commit diff
path: root/synapse/http/client.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--synapse/http/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py
index c8b76b2191..483f37fe03 100644
--- a/synapse/http/client.py
+++ b/synapse/http/client.py
@@ -145,7 +145,7 @@ class SimpleHttpClient(object):
 
         body = yield preserve_context_over_fn(readBody, response)
 
-        if response.code / 100 != 2:
+        if response.code / 100 >= 4:
             raise CodeMessageException(response.code, body)
 
         defer.returnValue(json.loads(body))