Skip to content

Throw better exceptions for api_usage_exceeded error #13

@yoannisj

Description

@yoannisj

The coconut API returns a 403 HTTP status code when the usage limit is exceeded. This throws a genericCoconut\Error, which does not provide much information to the php code using this library.

Ideally, the error message and error code would be part of the exception thrown so it can be displayed to the end user, or the exception can be handled differently (for example: retrying the API call after a delay?).

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