control: a refused webhook URL is a failure, not a usage error !333

merged merged by cmc on 2026-09-07 19:19 UTC · krz/gitbay:webhook-refusal-exit-187 into main

Discussion

cmc

webhook add handed every ValidateURL error to failErr, whose fallback is exit 2. The refusals the server decides after parsing — an unresolvable host, a private address — now answer exit 1, so every client shows the reason instead of a generic error. The command line's shape is still exit 2. Test drives Dispatch with a loopback URL, which needs no DNS.

Closes #187