Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status problem #116

Merged
merged 4 commits into from
Feb 2, 2013
Merged

Status problem #116

merged 4 commits into from
Feb 2, 2013

Conversation

kevinburke
Copy link
Contributor

Fixes #115 by changing the library to use the HTTP status code (which will always be present) instead of the status reported in the JSON response. This will probably require a version bump (eg 3.9 to 3.10) as it may break clients. We hope we would report the same status in the body and in the HTTP response, but you never know.

Also refactors a bunch of tests to use a common http mock creator, and fixes some warnings about incomplete tests

Kevin Burke added 4 commits February 1, 2013 16:44
Sometimes the HTTP status is not included in the JSON body,
we should report the HTTP status code in the TwilioRestException,
not the one in the body of the message.
@kyleconroy
Copy link
Contributor

+1 kevin, looks good to ship

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.

None yet

2 participants