diff --git a/monkey/infection_monkey/island_api_client/__init__.py b/monkey/infection_monkey/island_api_client/__init__.py index 9fae9b510..ec513e774 100644 --- a/monkey/infection_monkey/island_api_client/__init__.py +++ b/monkey/infection_monkey/island_api_client/__init__.py @@ -1,6 +1,7 @@ from .island_api_client_errors import ( IslandAPIConnectionError, IslandAPIError, + IslandAPIRequestError, IslandAPIRequestFailedError, IslandAPITimeoutError, ) diff --git a/monkey/infection_monkey/island_api_client/island_api_client_errors.py b/monkey/infection_monkey/island_api_client/island_api_client_errors.py index d0dbeb0c4..cdb23539a 100644 --- a/monkey/infection_monkey/island_api_client/island_api_client_errors.py +++ b/monkey/infection_monkey/island_api_client/island_api_client_errors.py @@ -22,9 +22,17 @@ class IslandAPIConnectionError(IslandAPIError): pass -class IslandAPIRequestFailedError(IslandAPIError): +class IslandAPIRequestError(IslandAPIError): """ - Raised when the API request fails(malformed request or an error on the API side) + Raised when the API request fails due to an error in the request sent from the client + """ + + pass + + +class IslandAPIRequestFailedError(IslandAPIError): + """ + Raised when the API request fails due to an error on the server """ pass