Absinthe response status code

Hey all, I’m new to graphql, I noticed that the status of the response to a request is always 200 even if there is an error. I would like to know if it is possible to have other status like 400.
Thanks! :smiley:

Hi @seka welcome! The GraphQL spec requires that graphql endpoints always return a 200 as long as the graphql document is valid.

One key reason is that graphql queries can return BOTH data and errors from resolvers.

4 Likes