Skip to content

Custom error message for http 400 #129

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

Closed
gingerdin opened this issue Nov 9, 2018 · 1 comment
Closed

Custom error message for http 400 #129

gingerdin opened this issue Nov 9, 2018 · 1 comment

Comments

@gingerdin
Copy link

gingerdin commented Nov 9, 2018

Hi,

I need to return the custom error message with concrete structure (general structure for the whole application) for the HTTP 400. In case, for example, when the user provided totally wrong request
(e.g. <app_url>/graphql)

Seems that there is no possibility to provide extensions to the graphql.servlet.AbstractGraphQLHttpServlet#AbstractGraphQLHttpServlet(java.util.List<graphql.servlet.GraphQLServletListener>, boolean) for the getHandler

Thanks for any help

@oliemansm
Copy link
Member

@gingerdin We're about to refactor that part so will keep this in mind while doing so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants