Use more descriptive error code

pull/302/head
Daniel Wagner-Hall 2015-10-13 18:02:00 +01:00
parent 0c38e8637f
commit d82c5f7b5c
1 changed files with 1 additions and 1 deletions

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