Skip to content

feat: 425 Too Early #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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