From 75298bd6ee42beef0e82eb4848c766c6f455ae12 Mon Sep 17 00:00:00 2001 From: Bastian <15634263+cemoktra@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:46:06 +0100 Subject: [PATCH] feat: add StatusCode::TOO_EARLY 425 (#725) Co-authored-by: Bastian Schubert --- src/status.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/status.rs b/src/status.rs index 88c556e2..16896e4a 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");