-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid GraphQL requests must result in HTTP 400 responses #568
Comments
If you example response is the complete response you got, then "data" block is missing so this must (as opposed to your title) resolve in a 4xx or 5xx according to your citation, am I right? |
@erwinc1 Yes. I've updated the title. |
I'm closing this issue as this PR clarifies the fact that only requests that cannot be parsed should result in 4xx/5xx response status codes. |
Just to add "from the horse's mouth" to this:
This is still true for responses that are served using the Note: all servers are expected to support the
This is true for responses using the |
As explained in the GraphQL over HTTP spec:
Currently Spring for GraphQL responds with an HTTP 200 OK response in this case:
The text was updated successfully, but these errors were encountered: