Skip to content

need to gracefully handle and report HTTP errors #24

@dsadinoff

Description

@dsadinoff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions