Skip to content

Use :unprocessable_content to support Rack's changes#545

Closed
tuxagon wants to merge 1 commit intoTrestleAdmin:mainfrom
tuxagon:prefer-unprocessable-content-over-entity
Closed

Use :unprocessable_content to support Rack's changes#545
tuxagon wants to merge 1 commit intoTrestleAdmin:mainfrom
tuxagon:prefer-unprocessable-content-over-entity

Conversation

@tuxagon
Copy link
Copy Markdown

@tuxagon tuxagon commented Aug 19, 2025

It has been about a year since the release of this work, but rack/rack#2137 introduced a deprecation warning about using :unprocessable_entity which should now be :unprocessable_content.

warning: Status code :unprocessable_entity is deprecated and will be removed in a future version of Rack. Please use :unprocessable_content instead.

This change simply changes that symbol.

@spohlenz
Copy link
Copy Markdown
Member

Thank you for bringing this to my attention. I have taken a slightly different approach in #548 (using a constant similar to rails/rails#53383), which retains compatibility with older Rack and Rails versions.

@spohlenz spohlenz closed this Sep 25, 2025
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