From ef32a70f938224409fced4de8ffdf0942a35ae19 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/status.rs b/src/status.rs index 1f619ee1..fd05c7f6 100644 --- a/src/status.rs +++ b/src/status.rs @@ -453,9 +453,9 @@ status_codes! { /// 421 Misdirected Request /// [RFC7540, Section 9.1.2](https://tools.ietf.org/html/rfc7540#section-9.1.2) (421, MISDIRECTED_REQUEST, "Misdirected Request"); - /// 422 Unprocessable Entity - /// [[RFC4918](https://tools.ietf.org/html/rfc4918)] - (422, UNPROCESSABLE_ENTITY, "Unprocessable Entity"); + /// 422 Unprocessable Content + /// [[RFC9110](https://datatracker.ietf.org/doc/html/rfc9110#section-15.5.21)] + (422, UNPROCESSABLE_CONTENT, "Unprocessable Content") /// 423 Locked /// [[RFC4918](https://tools.ietf.org/html/rfc4918)] (423, LOCKED, "Locked");