0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-10-16 05:19:01 +02:00

Use more descriptive error code

This commit is contained in:
Daniel Wagner-Hall 2015-10-13 18:02:00 +01:00
parent 0c38e8637f
commit d82c5f7b5c

View file

@ -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")