http-status-codes
http-status-codes copied to clipboard
Constants enumerating the HTTP status codes. All status codes defined in RFC1945 (HTTP/1.0, RFC2616 (HTTP/1.1), and RFC2518 (WebDAV) are supported.
Hello there, Would a brief description of each status codes be helpful? I am thinking something like this ```js getDescription(StatusCodes.NOT_FOUND) // output: The server can not find requested resource. In...
Right now I have to use the enum `StatusCodes` to apply type to an property in Typescript like this: ```ts import { StatusCodes } from "http-status-codes"; export type Response =...
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...
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 node_modules/http-status-codes/build/es/index.js 1: var __assign = (this &&...
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...
Added the status classes Informational (1xx), Successful (2xx), Redirection (3xx), ClientError (4xx) and ServerError (5xx) as unions of all status codes in their respective class according to the [ietf rfc7231](https://tools.ietf.org/html/rfc7231)...
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8. Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option followed by single dash [#17](https://github.com/minimistjs/minimist/issues/17) [Tests] Remove duplicate test [#12](https://github.com/minimistjs/minimist/issues/12) [Fix]...
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. Release notes Sourced from json5's releases. v1.0.2 Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a...
Bumps [json5](https://github.com/json5/json5) and [tsconfig-paths](https://github.com/dividab/tsconfig-paths). These dependencies needed to be updated together. Updates `json5` from 2.1.3 to 2.2.3 Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest'...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...