Error response status codes for webhook triggered flows #19178
Replies: 1 comment
-
Heya! Thanks for the feature request. While this didn't reach the 15 upvotes in 90 days requirements, there's actually another feature request that requires this to be implemented in order to work which did, so lets consolidate the two and keep the discussion going over on #18634 |
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
-
Summary
As discussed in the request #16342, you can throw an error or ensure that the flow ends on the rejection path to return a custom error status code. However this does not work with flows triggered via webhooks and it would be good to introduce a feature to support that.
Basic Example
No response
Motivation
We enhance the flows support to allow webhook triggered flows to send custom response status codes and payload.
Detailed Design
In the flow manager class
Requirements List
Must Have:
Should Have:
Could Have:
Won't Have:
Drawbacks
Alternatives
Currently the user is not able to have custom logic and send an error status code to the caller.
Adoption Strategy
Directus developers will need to update their flow consumers according to the response they send from their configured flows.
Unresolved Questions
No response
Beta Was this translation helpful? Give feedback.
All reactions