How to return a response with status codes using plugins #2301
Unanswered
brijesh-onmo
asked this question in
Q&A
Replies: 1 comment
-
Hi, sorry for the delay... I suppose you are using Yoga ? If it's the case, you can customize HTTP code and headers when an error is part of the result by using error extensions: https://the-guild.dev/graphql/yoga-server/docs/features/error-masking#modifying-http-status-codes-and-headers |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am rerouting the request from OnExecute to a different lambda and getting the response from the lambda and setting the response using setResultAndStopExecution. However I don't see a way to set the response status code as well.
The lambda might return a 500 response.
Beta Was this translation helpful? Give feedback.
All reactions