Skip to content

Commit

Permalink
Add StatusCode EARLY_HINTS and TOO_EARLY
Browse files Browse the repository at this point in the history
  • Loading branch information
Pi-Cla committed Mar 20, 2024
1 parent ec95511 commit 0a90b7d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/status.rs
Expand Up @@ -335,6 +335,10 @@ status_codes! {
/// [[RFC2518](https://tools.ietf.org/html/rfc2518)]
(102, PROCESSING, "Processing");

/// 103 Early Hints
/// [[RFC8297, Section 2](https://datatracker.ietf.org/doc/html/rfc8297#section-2)]
(103, EARLY_HINTS, "Early Hints");

/// 200 OK
/// [[RFC7231, Section 6.3.1](https://tools.ietf.org/html/rfc7231#section-6.3.1)]
(200, OK, "OK");
Expand Down Expand Up @@ -462,7 +466,9 @@ status_codes! {
/// 424 Failed Dependency
/// [[RFC4918](https://tools.ietf.org/html/rfc4918)]
(424, FAILED_DEPENDENCY, "Failed Dependency");

/// 425 Too Early
/// [[RFC8470, Section 5.2](https://datatracker.ietf.org/doc/html/rfc8470#section-5.2)]
(425, TOO_EARLY, "Too Early");
/// 426 Upgrade Required
/// [[RFC7231, Section 6.5.15](https://tools.ietf.org/html/rfc7231#section-6.5.15)]
(426, UPGRADE_REQUIRED, "Upgrade Required");
Expand Down

0 comments on commit 0a90b7d

Please sign in to comment.