graphql
graphql copied to clipboard
define a customized error type to carry status code and body
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 [email protected]