In the real world, the ActiveCampaign API tends to respond with error statuses quite often. activecampaign-python currently hides this and if the error response has no data it will blithely return the body of the error response.
I propose that if a 4xx or a 5xx is returned by an API request, that ought to generate an exception to the caller.
patch to follow
In the real world, the ActiveCampaign API tends to respond with error statuses quite often. activecampaign-python currently hides this and if the error response has no data it will blithely return the body of the error response.
I propose that if a 4xx or a 5xx is returned by an API request, that ought to generate an exception to the caller.
patch to follow