Skip to content

feat!: classify errors by fault - #11

Merged
JuliDi merged 1 commit into
mainfrom
julian/refactor-verification-errors
Aug 7, 2026
Merged

feat!: classify errors by fault#11
JuliDi merged 1 commit into
mainfrom
julian/refactor-verification-errors

Conversation

@JuliDi

@JuliDi JuliDi commented Aug 7, 2026

Copy link
Copy Markdown
Member

Split TurnstileError's top level into TokenRejected (deny the visitor), InvalidRequest (misconfigured integration, do not retry) and InternalApiError (retryable).
Hostname mismatches and code-less failures fold into the new TokenRejection enum.

BREAKING CHANGE: removes the SiteVerifyError, VerificationFailed and InvalidHostname variants from TurnstileError.

Split TurnstileError's top level into TokenRejected (deny the
visitor), InvalidRequest (misconfigured integration, do not retry)
and InternalApiError (retryable). Hostname mismatches and code-less
failures fold into the new TokenRejection enum.

BREAKING CHANGE: removes the SiteVerifyError, VerificationFailed and
InvalidHostname variants from TurnstileError.
@JuliDi
JuliDi requested a review from joelsa August 7, 2026 13:26
@JuliDi JuliDi self-assigned this Aug 7, 2026
@JuliDi JuliDi added the enhancement New feature or request label Aug 7, 2026
@JuliDi
JuliDi merged commit f83ccd8 into main Aug 7, 2026
3 checks passed
@JuliDi
JuliDi deleted the julian/refactor-verification-errors branch August 7, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants