Skip to content

Use :unprocessable_content response status when using Rack 3.1 - #548

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

spohlenz merged 3 commits into
mainfrom
unprocessable-content-response

Conversation

@spohlenz

@spohlenz spohlenz commented Sep 25, 2025 •

Copy link
Copy Markdown
Member

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

coveralls commented Sep 25, 2025 •

Copy link
Copy Markdown

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