http-status-codes icon indicating copy to clipboard operation
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.

Results 33 http-status-codes issues
Sort by recently updated
recently updated
newest added

Currently, we can use `StatusCodes` similar to a typescript enum like so: ```js console.log(StatusCodes.GONE); //411 console.log(StatusCodes[411]); //"Gone" ``` but this does not work with `ReasonPhrases`: ```js console.log(ReasonPhrases.GONE); //"Gone" console.log(ReasonPhrases[411]); //undefined...

enhancement

In this PR I have added a validator function called validateStatusCode. It validates if a given status code is recognized as code by our library it does so by matching...

In this PR I have added Cloudflare Cloudflare-specific status code: 521 1. 521 2. 522 3. 523 4. 524 5. 525 6. 526 in codes.json and other files to fix...

Any idea why this might be? https://bundlephobia.com/[email protected] ![image](https://user-images.githubusercontent.com/921609/91042302-7168a900-e609-11ea-995e-80e287a9f0f9.png)

enhancement
good first issue

Added unofficial 440 status code, that was defined in Microsoft's Internet Information Services (IIS) web server and is being adopted widely. It's not part of the standard set of HTTP...

Hi, It would be useful to get constant name by status code: ```ts getConstantNameByStatusCode(500) // 'INTERNAL_SERVER_ERROR' ```

Added HTTP Status Code 208 - Already Reported

hi @prettymuchbryce and @pacifiquem, please help me to review this PR regarding issue number #99 .

Superagent has a **retry** method which use the following status codes : - 408 - 413 - 429 - 500 - 502 - 503 - 504 - **521** - **522**...

new status code