diff --git a/trakt/errors.py b/trakt/errors.py index 8a54cd48..c1083137 100644 --- a/trakt/errors.py +++ b/trakt/errors.py @@ -17,6 +17,7 @@ 'LockedUserAccountException', 'RateLimitException', 'TraktInternalException', + 'TraktGatewayUnavailable', 'TraktUnavailable', ] @@ -92,6 +93,12 @@ class TraktInternalException(TraktException): message = 'Internal Server Error' +class TraktGatewayUnavailable(TraktException): + """TraktException type to be raised when a 502 error is raised""" + http_code = 502 + message = 'Trakt Unavailable - Bad Gateway' + + class TraktUnavailable(TraktException): """TraktException type to be raised when a 503 error is raised""" http_code = 503