shurcooL / graphql

Package graphql provides a GraphQL client implementation.
MIT License
708 stars 282 forks source link

define a customized error type to carry status code and body #76

Open leslie-qiwa opened 3 years ago

leslie-qiwa commented 3 years ago

as a user, I want to know status code directly instead of parsing error text, just incase error text got changed one day

Signed-off-by: Leslie Qi Wang qiwa@pensando.io