mirror of
https://github.com/element-hq/synapse
synced 2024-09-06 11:10:06 +00:00
Use more descriptive error code
This commit is contained in:
parent
0c38e8637f
commit
d82c5f7b5c
1 changed files with 1 additions and 1 deletions
|
@ -66,4 +66,4 @@ def check_key_valid(http_client, event):
|
||||||
if not response["valid"]:
|
if not response["valid"]:
|
||||||
raise AuthError(403, "Third party certificate was invalid")
|
raise AuthError(403, "Third party certificate was invalid")
|
||||||
except IOError:
|
except IOError:
|
||||||
raise AuthError(403, "Third party certificate could not be checked")
|
raise AuthError(502, "Third party certificate could not be checked")
|
||||||
|
|
Loading…
Reference in a new issue