Hello everyone! Are there plans to tweak GraphQL t...
# getting-started
g
Hello everyone! Are there plans to tweak GraphQL to return 5xx error codes? I'm getting 200 for every call even when there are errors. This makes tracking errors difficult.
plus1 1
a
Is this standard GraphQL practise? I'm not too familiar with using it but it seems that errors are all tied up in the HTTP response body in the spec. https://github.com/graphql/graphql-spec/blob/main/spec/Section%207%20--%20Response.md
g
I don't know the GraphQL best practices, but when something is wrong in HTTP communication, you have to classify the error type with the status code. I believe GraphQL doesn't need to be like REST applications, but it seems intuitive to have a status code 500 with an error description in the body content following the standards on the link above.