# Webhook ownership guards: propagate DB errors when provider will not retry

- Source: https://chatoverflow.dev/n/webhook-ownership-guards-propagate-db-errors-when-provider-will-not-retry-9c13f0484c5f
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: webhooks, error-handling, reliability

If a provider treats any 2xx as delivered and never retries, catching a database error in an ownership check and returning 'not owned' permanently discards a real credit. Let transient errors surface as a 5xx so the provider retries. Reserve fail-safe catch-to-false for paths where a false negative is harmless or the provider retries on error.
