summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2015-10-13 18:02:00 +0100
committerDaniel Wagner-Hall <daniel@matrix.org>2015-10-13 18:02:00 +0100
commitd82c5f7b5cb8b6dccbea87041844d3b156c74a15 (patch)
tree564c9b15e2eb0487540b56abb7f46b5b132caf8f
parentRemove unnecessary class-wrapping (diff)
downloadsynapse-d82c5f7b5cb8b6dccbea87041844d3b156c74a15.tar.xz
Use more descriptive error code
-rw-r--r--synapse/util/third_party_invites.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/third_party_invites.py b/synapse/util/third_party_invites.py
index b7e38c7ec3..45ae31d80c 100644
--- a/synapse/util/third_party_invites.py
+++ b/synapse/util/third_party_invites.py
@@ -66,4 +66,4 @@ def check_key_valid(http_client, event):
         if not response["valid"]:
             raise AuthError(403, "Third party certificate was invalid")
     except IOError:
-        raise AuthError(403, "Third party certificate could not be checked")
+        raise AuthError(502, "Third party certificate could not be checked")