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

Non 200 codes block getting http response #251

Open
bxm156 opened this issue Sep 2, 2016 · 0 comments
Open

Non 200 codes block getting http response #251

bxm156 opened this issue Sep 2, 2016 · 0 comments

Comments

@bxm156
Copy link
Member

bxm156 commented Sep 2, 2016

According to http://bravado.readthedocs.io/en/latest/advanced.html#getting-access-to-the-http-response

I can use {'also_return_response': True} to get the response. But that will only work on 200 codes. I would like to also get 404, 500 etc, but instead, an HTTPError is raised.

I have to access the HTTPError.response to get my response. Maybe this just is something that should be called out in the doucmentation

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