hasura / hasura/graphql-engine
Customize Error message
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
I am sending request from front end to hasura in middle webhook will check the validation if any one the validation goes fail I need to send custom message or status code which in digits. Is there any chance like that we can send.
ex: res.JSON({ value: "invalid-jwt", "x-hasura-role": "not valid", statusCode:"412"});
If, I can send like above ex how to access it.
Thak you
Contributor guide
Research direction
The issue names no source file, test, or entry point. Start by locating the webhook response handling, then determine the supported way to return a custom validation message and numeric status code; done means the requested response shape is clearly supported or ruled out.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100