Does anyone know if all `before` hooks return 500?
# talk-kratos
a
Does anyone know if all
before
hooks return 500?
b
What issues are you facing? In which case does the hook return 500? And what’s the error message. If you’re looking for flow interrupting webhooks, see here: https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks#flow-interrupting-webhooks
a
So my question was a bit vague, but the problem is that if I have multiple webhooks and one fails, they all respond with 500 and a generic error message with the ListValidationError or something. Basically no information is given to the UI to key off of to present a specific error message. So say one before hook checks if a user has an invitation code and a second is a hook for password strength or something. If either fails it’s a generic 500 with a message saying “1 validation failed”. I would expect the response to be 424 or maybe whatever the webhook status is. The body should return the actual message from the webhook back to the ui
Right now I can just tell the user an error occurred and I’ll have to manually figure out why the webhook failed.