import "github.com/99designs/gqlgen/graphql/errcode"
const ParseFailed = "GRAPHQL_PARSE_FAILED"
const ValidationFailed = "GRAPHQL_VALIDATION_FAILED"
RegisterErrorType should be called by extensions that want to customize the http status codes for errors they return
Set the error code on a given graphql error extension
const ( // issues with graphql (validation, parsing). 422s in http, GQL_ERROR in websocket KindProtocol ErrorKind = iota // user errors, 200s in http, GQL_DATA in websocket KindUser )
get the kind of the first non User error, defaults to User if no errors have a custom extension
Package errcode imports 1 packages (graph) and is imported by 21 packages. Updated 2020-03-03. Refresh now. Tools for package owners.