From 969e41d84d1730bc6dbd077dd71c72335037144b Mon Sep 17 00:00:00 2001 From: Bastian Schubert Date: Wed, 20 Nov 2024 13:07:37 +0100 Subject: [PATCH 1/2] add 425 - too early --- src/status.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/status.rs b/src/status.rs index 88c556e2..e2236b38 100644 --- a/src/status.rs +++ b/src/status.rs @@ -463,6 +463,10 @@ status_codes! { /// [[RFC4918, Section 11.4](https://tools.ietf.org/html/rfc4918#section-11.4)] (424, FAILED_DEPENDENCY, "Failed Dependency"); + /// 425 Too early + /// [[RFC8470, Section 5.2](https://httpwg.org/specs/rfc8470.html#status)] + (425, TOO_EARLY, "Too early"); + /// 426 Upgrade Required /// [[RFC9110, Section 15.5.22](https://datatracker.ietf.org/doc/html/rfc9110#section-15.5.22)] (426, UPGRADE_REQUIRED, "Upgrade Required"); From a7db3cd0e71421ad1195a9b138e143b835cf3d4a Mon Sep 17 00:00:00 2001 From: Bastian Schubert <15634263+cemoktra@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:51:59 +0100 Subject: [PATCH 2/2] fix capitalization --- src/status.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status.rs b/src/status.rs index e2236b38..16896e4a 100644 --- a/src/status.rs +++ b/src/status.rs @@ -465,7 +465,7 @@ status_codes! { /// 425 Too early /// [[RFC8470, Section 5.2](https://httpwg.org/specs/rfc8470.html#status)] - (425, TOO_EARLY, "Too early"); + (425, TOO_EARLY, "Too Early"); /// 426 Upgrade Required /// [[RFC9110, Section 15.5.22](https://datatracker.ietf.org/doc/html/rfc9110#section-15.5.22)]