Jun 27, 2019 5:00 AM
I am building the endpoint where the webhook subscriptions will be talking to but from the documentation it is not clear for me what response should I give.
In the docs https://developers.hubspot.com/docs/methods/webhooks/webhooks-overview it says:
We will retry in the following cases:
- Connection Failed - If we cannot open an http connection to the provided webhook URL
- Timeout - If your service takes longer than 2 second to send back a response to a batch of notifications
- Error codes - If your service responds with an HTTP status code that is not one of: 400, 401, 403, 404, 405
I understand that normally we would need to respond with a 204 (Success, No content) if everything went ok and any other code if something went wrong. I also understand that what the docs are saying is that if you return anything else that is not a 4XX or a 2XX code, it will retry again to send the notifications.
Am I right?
Solved! Go to Solution.