Skip to content

fix: the default rejection handler ranks missing query parameters before an expected entity, as Pekko - #91

Merged
luksow merged 3 commits into
masterfrom
rejection-ranking
Oct 18, 2026
Merged

luksow merged 3 commits into
masterfrom
rejection-ranking

Conversation

@luksow

@luksow luksow commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

The default rejection handler answered RequestEntityExpectedRejection (400) before MissingQueryParamRejection / InvalidRequiredValueForQueryParamRejection (404); it now uses Pekko's order. A full comparison of the handler against Pekko's also found MissingAttributeRejection answering "Internal Server Error" instead of Pekko's "There was an internal server error." (fixed) and three cosmetic differences (deduplicated 406/415/Allow lists, media type without parameters in the 415 message, no Content-Range for an unknown-length 416), now listed in migration.md.


Part of the 0.7.1 stack (audit 2 minor items). Stacked: merge in order #1 → #10; each PR is based on the previous one, so none of them conflicts on docs/migration.md. Every PR: test written first and seen failing, full local verify (Scala 3 + 2.13 tests, JS/Native compile, docs, MiMa against 0.7.0), independent review with its findings fixed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea

luksow and others added 3 commits October 18, 2026 19:20
…ore an expected entity, as Pekko

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
…ng cosmetic rejection-handler differences

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
…bytes */-1); Allow lists methods in no order

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
@luksow
luksow force-pushed the rejection-ranking branch from c21439b to 38d8c96 Compare October 18, 2026 19:28
Base automatically changed from redirect-html to master October 18, 2026 20:02
@luksow
luksow merged commit d7f0b8b into master Oct 18, 2026
22 of 31 checks passed
@luksow
luksow deleted the rejection-ranking branch October 18, 2026 20:03
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.

1 participant