Skip to content

Commit 0ec75f0

Browse files
author
Pi-Cla
committed
Rename UNPROCESSABLE_ENTITY to UNPROCESSABLE_CONTENT
Fix #664
1 parent c88f839 commit 0ec75f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/status.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,9 @@ status_codes! {
453453
/// 421 Misdirected Request
454454
/// [[RFC9110, Section 15.5.20](https://datatracker.ietf.org/doc/html/rfc9110#section-15.5.20)]
455455
(421, MISDIRECTED_REQUEST, "Misdirected Request");
456-
/// 422 Unprocessable Entity
456+
/// 422 Unprocessable Content
457457
/// [[RFC9110, Section 15.5.21](https://datatracker.ietf.org/doc/html/rfc9110#section-15.5.21)]
458-
(422, UNPROCESSABLE_ENTITY, "Unprocessable Entity");
458+
(422, UNPROCESSABLE_CONTENT, "Unprocessable Content");
459459
/// 423 Locked
460460
/// [[RFC4918, Section 11.3](https://datatracker.ietf.org/doc/html/rfc4918#section-11.3)]
461461
(423, LOCKED, "Locked");

0 commit comments

Comments
 (0)