Skip to content

fix(ext/node): correct STATUS_CODES strings #28489

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
Mar 13, 2025
Merged

Conversation

lukeed
Copy link
Contributor

@lukeed lukeed commented Mar 13, 2025

Matches Node.js http.STATUS_CODES values now. Deno is currently exporting an enum directly, which 1) adds keys like BadRequest and 2) ships the status-text strings as non-space-delimited values (eg, 'BadRequest`` instead of 'Bad Request'`)

Current deno repl -A snapshot:

Screenshot 2025-03-13 at 12 45 42 PM

Matches Node.js `http.STATUS_CODES` values now. Deno is currently exporting an enum directly, which 1) adds keys like `BadRequest` and 2) ships the status-text strings as non-space-delimited values (eg, `'BadRequest`` instead of `'Bad Request'`)

Signed-off-by: Luke Edwards <[email protected]>
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@dsherret dsherret merged commit 424a2f3 into denoland:main Mar 13, 2025
18 checks passed
@lukeed lukeed deleted the patch-1 branch March 14, 2025 16:56
ry pushed a commit that referenced this pull request Mar 14, 2025
Matches Node.js `http.STATUS_CODES` values now. Deno is currently
exporting an enum directly, which 1) adds keys like `BadRequest` and 2)
ships the status-text strings as non-space-delimited values (eg,
`'BadRequest`` instead of `'Bad Request'`)

Signed-off-by: Luke Edwards <[email protected]>
ry pushed a commit that referenced this pull request Apr 7, 2025
Matches Node.js `http.STATUS_CODES` values now. Deno is currently
exporting an enum directly, which 1) adds keys like `BadRequest` and 2)
ships the status-text strings as non-space-delimited values (eg,
`'BadRequest`` instead of `'Bad Request'`)

Signed-off-by: Luke Edwards <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants