Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Feature/discern server error #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Marthyn
Copy link

@Marthyn Marthyn commented Apr 26, 2016

No description provided.

The method `perform_request` now gets passed the whole response in
order to check the status code.

When the code is 200, the `yield.tap` block is ended.
When the code is in the 500 range, an ApiServerError is raised.
In all other cases, the original InvalidApiRequest is raised.
When running tests, the API appears to return status code 200 even when
triggering an error. To account for this behaviour, I've added checks
for both https status codes and api error codes.
@einzige
Copy link
Contributor

einzige commented Aug 19, 2016

hey @Marthyn would you be interested in adding specs for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants