Skip to content

Commit a5e89e0

Browse files
committed
Add 422 Unprocessable Content
1 parent e313223 commit a5e89e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/io/github/malczuuu/problem4j/core/ProblemStatus.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,19 @@ public enum ProblemStatus {
467467
* 422 Unprocessable Entity.
468468
*
469469
* @link <a href="https://datatracker.ietf.org/doc/html/rfc4918#section-11.2">RFC 4918 §11.2</a>
470+
* @deprecated renamed to {@link #UNPROCESSABLE_CONTENT} by RFC 9110.
470471
*/
472+
@Deprecated
471473
UNPROCESSABLE_ENTITY(422, "Unprocessable Entity"),
472474

475+
/**
476+
* 422 Unprocessable Content.
477+
*
478+
* @link <a href="https://datatracker.ietf.org/doc/html/rfc9110#section-15.5.21">RFC 9110
479+
* §15.5.21</a>
480+
*/
481+
UNPROCESSABLE_CONTENT(422, "Unprocessable Content"),
482+
473483
/**
474484
* 423 Locked.
475485
*

0 commit comments

Comments
 (0)