Skip to content

Use :unprocessable_content response status when using Rack 3.1#548

Merged
spohlenz merged 3 commits intomainfrom
unprocessable-content-response
Sep 25, 2025
Merged

Use :unprocessable_content response status when using Rack 3.1#548
spohlenz merged 3 commits intomainfrom
unprocessable-content-response

Conversation

@spohlenz
Copy link
Copy Markdown
Member

@spohlenz spohlenz commented Sep 25, 2025

Alternative approach to #545. Updates the resource controller actions to respond with :unprocessable_content status instead of the now deprecated :unprocessable_entity status when using >= Rack 3.1.

This approach retains compatibility with Rack 2.x (thereby continuing compatibility with Rails 6.x & Rails 7.0).

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 25, 2025

Coverage Status

coverage: 91.876% (+0.4%) from 91.449%
when pulling 4a7cd99 on unprocessable-content-response
into b0e800b on main.

@spohlenz spohlenz marked this pull request as ready for review September 25, 2025 12:29
@spohlenz spohlenz merged commit bd7443b into main Sep 25, 2025
43 checks passed
@spohlenz spohlenz deleted the unprocessable-content-response branch September 25, 2025 12:30
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