-
Bug
-
Resolution: Done
-
Major
-
fuse-7.x-GA
In some cases (for some status code), the webhook returns different status code as which was set.
I created simple integration Webhook->InvokeSQL for every return code.
For return 2xx codes, I used `INSERT INTO todo (task) VALUES ('test')` query in the invoke SQL step.
For 4xx and 5xx codes, I used `INSERT INTO contact (create_date) VALUES ('Red Hat')` query in the invoke SQL step.
After that, I published all integrations and invoked the webhooks.
Return code defined in WebHook | What webhook returns | |
---|---|---|
200 | 204 | |
201 | 204 | |
202 | 204 | |
204 | 204 | |
400 | 200 | |
404 | 404 | |
405 | 405 | |
409 | 409 | |
500 | 500 | |
501 | 501 | |
503 | 503 |