Skip to content

Remove deprecated StatusCodes.PayloadTooLarge and UnprocessableEntity (since 1.1.0)#1122

Draft
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:remove/deprecated-status-codes
Draft

Remove deprecated StatusCodes.PayloadTooLarge and UnprocessableEntity (since 1.1.0)#1122
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:remove/deprecated-status-codes

Conversation

@He-Pin

@He-Pin He-Pin commented Jul 5, 2026

Copy link
Copy Markdown
Member

Motivation

PayloadTooLarge and UnprocessableEntity status codes were deprecated since pekko-http 1.1.0 in favor of ContentTooLarge and UnprocessableContent respectively.

Modification

Removed deprecated vals from Scala StatusCodes object and Java StatusCodes class. Added MiMa filters for binary compatibility exceptions.

Result

Deprecated API removed. Users should use ContentTooLarge and UnprocessableContent.

…ableEntity (since 1.1.0)

Motivation:
These status codes were deprecated since pekko-http 1.1.0 in favor of
ContentTooLarge and UnprocessableContent respectively.

Modification:
Removed deprecated vals from Scala StatusCodes object and Java StatusCodes class:
- PayloadTooLarge → use ContentTooLarge
- UnprocessableEntity → use UnprocessableContent

Added MiMa filters for binary compatibility exceptions.

Result:
Deprecated API removed. Users should use ContentTooLarge and UnprocessableContent.
@He-Pin He-Pin marked this pull request as ready for review July 5, 2026 04:04
@pjfanning

Copy link
Copy Markdown
Member

I, personally, prefer to keep deprecated methods around for a while and these were only deprecated recently.

@He-Pin He-Pin marked this pull request as draft July 5, 2026 08:40
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