Uniform Webhooks

Hi there,
we are using the plugin Kirby-Uniform. It enables us to call a “webhhook”. The webhook takes the form values and returns a “result”. How is it possible to let the webhook return more complex answers. Eg. return FormValid= True and an integer, or FormValid=False an error code and an error message?