graphql
graphql copied to clipboard
Get the status code in case of error
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 !
I've had the same issue. I believe this should be fixed by #47 once accepted and merged.
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?