Merge "Add http status_code 401 support"

This commit is contained in:
Zuul
2025-10-14 01:59:14 +00:00
committed by Gerrit Code Review

View File

@@ -127,6 +127,10 @@ def http_error_to_exception(status_code, error_code, related_error_codes=None):
{'98': exceptions.BadXSRFToken,
'403': exceptions.InvalidCredentials,
'505': exceptions.InvalidLicense},
requests.codes.UNAUTHORIZED:
{'98': exceptions.BadXSRFToken,
'403': exceptions.InvalidCredentials,
'505': exceptions.InvalidLicense},
requests.codes.TOO_MANY_REQUESTS: exceptions.TooManyRequests,
requests.codes.SERVICE_UNAVAILABLE: exceptions.ServiceUnavailable}