Skip to content

Conversation

@Pattio
Copy link
Owner

@Pattio Pattio commented Jan 18, 2026

Add an optional mapError closure to HTTPStatusValidatingHandler.

When status code validation fails, the handler still throws .invalidStatus, but now also attaches mapError(response) as HTTPError.underlyingError (if provided). Default behavior is unchanged when mapError is nil.

@Pattio Pattio merged commit fbf0f01 into main Jan 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants