Kotlin Lambda handling GC webhook 5xx DLQ routing

Our Kotlin Lambda consuming Genesys Cloud webhooks is hitting 500s when the DB connection pool exhausts. The docs say GC retries, but I want a custom DLQ for these specific failures. How do I structure the Lambda response to tell the webhook engine to stop retrying and push the payload to an SQS dead letter queue instead? Returning 200 swallows the error, but 500 triggers infinite retries.