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

Get the status code in case of error #25

Open
bejito opened this issue Feb 11, 2019 · 2 comments
Open

Get the status code in case of error #25

bejito opened this issue Feb 11, 2019 · 2 comments

Comments

@bejito
Copy link

bejito commented Feb 11, 2019

Hi !
I can't find a way to get the response status code when an HTTP error is returned.
My use case is that I want to check if it is a 401 (in which case I want to renew the client token).

Thanks !

@necrophonic
Copy link

I've had the same issue. I believe this should be fixed by #47 once accepted and merged.

@saopayne
Copy link

When can we have this in a release, please?

return fmt.Errorf("graphql: server returned a non-200 status code: %v", res.StatusCode)

We need this check and it's not available in V2.2. Can master be promoted to a release?

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

3 participants