graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.94k stars 842 forks source link

HTTP status codes #450

Open codixir opened 5 years ago

codixir commented 5 years ago

Not sure how to handle http errors with this package. I am getting database query specific error. It would be nice to have explicit error messages or at least a status code response.

deadletterq commented 5 years ago

From what I know in GraphQL we usually will have code 200. I recommend watching this video about handling GraphQL errors: https://youtu.be/A5-H6MtTvqk