Skip to content

Commit

Permalink
feat: add StatusCode::TOO_EARLY 425 (#725)
Browse files Browse the repository at this point in the history
Co-authored-by: Bastian Schubert <bastian.schubert@dock.financial>
  • Loading branch information
cemoktra and Bastian Schubert authored Nov 20, 2024
1 parent 7faad85 commit 75298bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 75298bd

Please sign in to comment.