CXone Webhook 5xx Retry Logic and Dead Letter Queue

Our endpoint is returning 500 intermittently, causing CXone to retry and eventually drop the event. There’s no native DLQ config in the UI for this scenario. How do I implement a manual retry loop or queue in the webhook consumer code when the initial post fails?