graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Get the status code in case of error

Open bejito opened this issue 6 years ago • 2 comments

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 !

bejito avatar Feb 11 '19 17:02 bejito

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

necrophonic avatar Oct 21 '19 11:10 necrophonic

When can we have this in a release, please? https://github.com/machinebox/graphql/blob/3a92531802258604bd12793465c2e28bc4b2fc85/graphql.go#L142

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

saopayne avatar Jan 15 '20 14:01 saopayne