Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Rename unprocessable_entity to unprocessable_content#815

Merged
DavidBiddle merged 1 commit intomainfrom
rename-unprocessable-entity
Aug 15, 2025
Merged

Rename unprocessable_entity to unprocessable_content#815
DavidBiddle merged 1 commit intomainfrom
rename-unprocessable-entity

Conversation

@DavidBiddle
Copy link
Copy Markdown
Contributor

@DavidBiddle DavidBiddle commented Aug 15, 2025

What problem does this pull request solve?

When the 422 status was initially proposed in RFC4918 (2007), it was called 'Unprocessable entity'.

When it became a standard in RFC9110 (2022), it was renamed 'Unprocessable content'.

Rack now supports it as :unprocessable_content and deprecated :unprocessable_entity in v3.1.0. This commit updates it to use the new name.

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

@DavidBiddle DavidBiddle marked this pull request as ready for review August 15, 2025 11:15
When the 422 status was initially proposed in
[RFC4918](https://datatracker.ietf.org/doc/html/rfc4918) (2007), it was
called 'Unprocessable entity'.

When it became a standard in
[RFC9110](https://datatracker.ietf.org/doc/html/rfc9110) (2022), it was
renamed 'Unprocessable content'.

Rack now supports it as `:unprocessable_content` and has deprecated
`:unprocessable_entity`. This commit updates it to use the new name.
@DavidBiddle DavidBiddle force-pushed the rename-unprocessable-entity branch from 880c19d to ee6a0a9 Compare August 15, 2025 13:47
@sonarqubecloud
Copy link
Copy Markdown

@DavidBiddle DavidBiddle merged commit bef167b into main Aug 15, 2025
4 checks passed
@DavidBiddle DavidBiddle deleted the rename-unprocessable-entity branch August 15, 2025 13:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants