hasura / hasura/graphql-engine

Customize Error message

Open
#9,807 0 comments 0 reactions 0 assignees View on GitHub
k/enhancement t/gql-services
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.