Skip to content
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

Return 200 errors #39

Merged
merged 3 commits into from
May 10, 2020
Merged

Return 200 errors #39

merged 3 commits into from
May 10, 2020

Conversation

jkimbo
Copy link
Member

@jkimbo jkimbo commented May 10, 2020

This PR modifies the logic that determines the HTTP status code to follow the v2 behaviour (see #36 (comment)). A HTTP 400 response should only be returned only when the errors are not specific to a particular part of the query (a validation error for example) otherwise a HTTP 200 response should be returned.

@jkimbo jkimbo requested review from Cito and KingDarBoja May 10, 2020 08:58
Copy link
Contributor

@KingDarBoja KingDarBoja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@KingDarBoja KingDarBoja added the type: bug An issue or pull request relating to a bug label May 10, 2020
@jkimbo jkimbo merged commit 6c13ef6 into master May 10, 2020
@jkimbo jkimbo deleted the return-200-errors branch May 10, 2020 18:46
@KingDarBoja KingDarBoja added this to the GraphQL-Server (V3) milestone Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants