issues Search Results · repo:prettymuchbryce/http-status-codes language:TypeScript
Filter by
41 results
(47 ms)41 results
inprettymuchbryce/http-status-codes (press backspace or delete to remove)302 was defined as Moved Temporarily in the HTTP/1.0 spec, but changed to Found in HTTP/1.1. Is it possible to update
the name here, but keep StatusCodes.MOVED_TEMPORARILY as an alias of StatusCodes.FOUND ...
- thewilkybarkid
- Opened on Sep 11, 2024
- #109
Since the project is already on typescript and include type declaration in build(d.ts)
We can add a type export so we don t have to install @types/ separately
- marklai1998
- Opened on Aug 16, 2024
- #108
Hi,
It would be useful to get constant name by status code:
getConstantNameByStatusCode(500) // INTERNAL_SERVER_ERROR
- j3bb9z
- 2
- Opened on Jan 17, 2024
- #101
the SMTP User Authentication details you have configured (or not configured) in your email settings.
- pacifiquem
- 7
- Opened on Oct 17, 2023
- #99
Hey great package! We re already using it but could really benefit from a util function to validate the code. What do
you think ? Would it be valuable to add something like validateHttpCode(code: number): ...
enhancement
question
- ihorbond
- Opened on Jul 14, 2023
- #98
Currently, we can use StatusCodes similar to a typescript enum like so:
console.log(StatusCodes.GONE); //411
console.log(StatusCodes[411]); // Gone
but this does not work with ReasonPhrases:
console.log(ReasonPhrases.GONE); ...
enhancement
- james-pre
- 1
- Opened on Apr 16, 2023
- #96
Hello there, Would a brief description of each status codes be helpful? I am thinking something like this
getDescription(StatusCodes.NOT_FOUND)
// output: The server can not find requested resource. In ...
enhancement
- Daxe9
- 1
- Opened on Jan 17, 2023
- #94
I was very surprised to discover that getReasonPhrase throws an exception when given an HTTP status code that the
library does not know about.
Could we add non-throwing variants of getReasonPhrase and ...
enhancement
- maxdeviant
- 1
- Opened on Sep 2, 2022
- #88
I find my team looking through the enums for the correct status code to use. Would be really useful to have the ts file
ordered and comment blocks inserted outlining http code groups 100, 200, 300, etc. ...
- JameelKhan9
- 1
- Opened on May 9, 2022
- #85
Rollup was giving me this warning for http-status-codes/build/es/index.js:
bundles src/frontend/main.ts → public/build/bundle.js...
LiveReload enabled
(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en/#error-this-is-undefined ...
enhancement
good first issue
- jtlapp
- Opened on Apr 19, 2022
- #84
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.