Hey everyone, my webhook endpoint for tracking WFM adherence events is crashing with a 500 Internal Server Error when the database is locked, and Genesys keeps retrying the same payload endlessly instead of letting it fail gracefully. I need to know how to properly signal to Genesys that this specific event should be dumped into a dead letter queue or stopped from retrying, because the current behavior is flooding our logs and blocking other valid events. I’ve tried returning a 404, but that just marks the delivery as failed without any way to inspect the payload later.
Here is the basic Express route handler I’m using, which throws an error on DB write failure. Can someone show me the correct HTTP status code or response body to trigger the dead letter behavior in Genesys Cloud? I’m not sure if I need to handle this entirely on my end with a separate queue system or if the API supports a specific ‘do not retry’ header. Thanks for the help.