Add status code chenge option when GraphQL error

When an error occurs in GraphQL, I would like to add the option to return a status code with “200OK”.
If an error occurs in GraphQL, I suggest a way to allow the status code to be changed.

I would also like to have an option to change the HTTP status code for graphql errors (or have it return 200 on graphql errors always/by default).

The reason for this is that at least the apollo graphql client (v3) in javascript expects graphql errors to be returned as a HTTP 200. Returning a HTTP 400 will cause the error handling mechanisms in apollo to trigger twice, which in my use case caused duplicate execution of mutation queries.

I’d be more than happy to provide a patch for this.

Thanks for the reply.

I’m making a pull request, is that not good enough?

If you need to make another patch, I’d like to know how.