Skip to content

Comments

Throw exception for errors that are returned along with an "ok" http status#6

Open
dejan9393 wants to merge 1 commit intoclickatell:masterfrom
communitybuilders:handle-errors-for-ok-statuses
Open

Throw exception for errors that are returned along with an "ok" http status#6
dejan9393 wants to merge 1 commit intoclickatell:masterfrom
communitybuilders:handle-errors-for-ok-statuses

Conversation

@dejan9393
Copy link

If a response is returned with a 200 OK status and the decoded JSON contains an 'error' key, the library currently returns an empty array as a result.

This PR resolves this by throwing an exception if the JSON contains an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant