diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2015-10-13 18:02:00 +0100 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2015-10-13 18:02:00 +0100 |
commit | d82c5f7b5cb8b6dccbea87041844d3b156c74a15 (patch) | |
tree | 564c9b15e2eb0487540b56abb7f46b5b132caf8f /synapse/util/third_party_invites.py | |
parent | Remove unnecessary class-wrapping (diff) | |
download | synapse-d82c5f7b5cb8b6dccbea87041844d3b156c74a15.tar.xz |
Use more descriptive error code
Diffstat (limited to 'synapse/util/third_party_invites.py')
-rw-r--r-- | synapse/util/third_party_invites.py | 2 |
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") |