From 0ec75f07df50242e6ff7ba49f93c460cc41f7f94 Mon Sep 17 00:00:00 2001 From: Pi-Cla Date: Wed, 20 Mar 2024 03:48:28 +0000 Subject: [PATCH] Rename UNPROCESSABLE_ENTITY to UNPROCESSABLE_CONTENT Fix #664 --- src/status.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status.rs b/src/status.rs index 88c556e2..1431de8f 100644 --- a/src/status.rs +++ b/src/status.rs @@ -453,9 +453,9 @@ status_codes! { /// 421 Misdirected Request /// [[RFC9110, Section 15.5.20](https://datatracker.ietf.org/doc/html/rfc9110#section-15.5.20)] (421, MISDIRECTED_REQUEST, "Misdirected Request"); - /// 422 Unprocessable Entity + /// 422 Unprocessable Content /// [[RFC9110, Section 15.5.21](https://datatracker.ietf.org/doc/html/rfc9110#section-15.5.21)] - (422, UNPROCESSABLE_ENTITY, "Unprocessable Entity"); + (422, UNPROCESSABLE_CONTENT, "Unprocessable Content"); /// 423 Locked /// [[RFC4918, Section 11.3](https://datatracker.ietf.org/doc/html/rfc4918#section-11.3)] (423, LOCKED, "Locked");