Skip to content

Commit

Permalink
feat: 425 Too Early (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
denizdogan authored Sep 4, 2023
1 parent 610b133 commit 3247afe
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ declare namespace httpStatus {
readonly '424_CLASS': string;
readonly FAILED_DEPENDENCY: 424;

readonly 425: string;
readonly '425_NAME': string;
readonly '425_MESSAGE': string;
readonly '425_CLASS': string;
readonly TOO_EARLY: 425;

readonly 426: string;
readonly '426_NAME': string;
readonly '426_MESSAGE': string;
Expand Down
6 changes: 6 additions & 0 deletions lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ declare namespace httpStatus {
readonly '424_CLASS': string;
readonly FAILED_DEPENDENCY: 424;

readonly 425: string;
readonly '425_NAME': string;
readonly '425_MESSAGE': string;
readonly '425_CLASS': string;
readonly TOO_EARLY: 425;

readonly 426: string;
readonly '426_NAME': string;
readonly '426_MESSAGE': string;
Expand Down
8 changes: 8 additions & 0 deletions src/index.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,14 @@ Indicates that the client seems to have erred.
'424_CLASS': classes.CLIENT_ERROR
FAILED_DEPENDENCY: 424
425 (RFC 8470) - The server is unwilling to risk processing a request that might be replayed.

425: 'Too Early'
'425_NAME': 'TOO_EARLY'
'425_MESSAGE': 'The server is unwilling to risk processing a request that might be replayed.'
'425_CLASS': classes.CLIENT_ERROR
FAILED_DEPENDENCY: 425
426 - The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.

426: 'Upgrade Required'
Expand Down

0 comments on commit 3247afe

Please sign in to comment.