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

Returning status codes in error body #54

Open
RyanQuey opened this issue Jan 19, 2018 · 0 comments
Open

Returning status codes in error body #54

RyanQuey opened this issue Jan 19, 2018 · 0 comments

Comments

@RyanQuey
Copy link

Hello,

Thanks for providing this lib, it's been a great help.

I'm wondering though if there's a way to get the status code when there are errors. The particular use case is we want to destroy all droplets by tag, but if it returns a 404 or 422 we want to handle that differently than a failure to destroy droplets that actually exist.

This seems to be the culprit line which keeps the response code from us.

Would it be possible to change it so we get the status code somehow? Or is there another way?

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

No branches or pull requests

1 participant