# js-http-status

> This package is no longer maintained. Choose @codevor/js-http-status package.

Latest version **1.0.1** (published 2019-12-10) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install js-http-status
pnpm add js-http-status
yarn add js-http-status
bun add js-http-status
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-12-10 |
| First published | 2019-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Helder Burato Berto |
| Maintainers | helderburato, npm |
| Keywords | http-status, http, statuses, js-http-status, validate |

## Links

- npm: https://www.npmjs.com/package/js-http-status
- Repository: https://github.com/codevor/js-http-status
- Homepage: https://github.com/codevor/js-http-status#readme
- Issues: https://github.com/codevor/js-http-status/issues
- npm.io page: https://npm.io/package/js-http-status

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-12-10
- 1.0.0 — 2019-10-25
- 0.1.3 — 2019-10-21

## README

# This package is no longer maintained. Choose @codevor/js-http-status package.

> [@codevor/js-http-status](https://www.npmjs.com/package/@codevor/js-http-status);

[![Travis CI][travis-badge]][travis-url]
[![Coverage Status][coverage-badge]][coverage-url]
[![NPM Version][npm-version-badge]][npm-url]
![NPM Downloads][npm-download-url]
[![Commitizen][commitizen-badge]][commitizen-url]
[![License][license-badge]][license-url]

## Installation

js-http-status is available on npm/yarn:

```bash
$ npm install @codevor/js-http-status --save
$ yarn add @codevor/js-http-status
```

## Documentation

[Access documentation clicking here](https://codevor.github.io/js-http-status/).

## Usage

Practice and learn [here](https://npm.runkit.com/js-http-status).

With ES6/import

```js
import {
  findStatusByCode,
  findStatusByKey,
  isCreated,
  isOk
} from 'js-http-status';

findStatusByCode(200);
// => { code: 200, key: 'OK', message: 'OK', category: 'SUCCESS' }

findStatusByKey('TOO_MANY_REQUESTS');
// => { code: 429, key: 'TOO_MANY_REQUESTS', message: 'Too Many Requests', category: 'CLIENT_ERROR' }

isCreated(201); // => true
isCreated(500); // => HTTPStatusError: Expected a 201 response.
```

## Contributing

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

## Changelog

This project adheres to [Semantic Versioning](https://semver.org/). Every release, along with the migration instructions, is documented on the Github [Releases](https://github.com/codevor/js-http-status/releases) page.

## Bugs and Sugestions

Report bugs or do suggestions using the [issues](https://github.com/codevor/js-http-status/issues).

## References

- [HTTP Statuses](https://httpstatuses.com/);

## License

[MIT License](LICENSE) © [Codevor](https://github.com/codevor)

[license-badge]: https://img.shields.io/github/license/codevor/js-http-status.svg
[license-url]: https://opensource.org/licenses/MIT
[coverage-badge]: https://coveralls.io/repos/github/codevor/js-http-status/badge.svg?branch=master
[coverage-url]: https://coveralls.io/github/codevor/js-http-status?branch=master
[travis-badge]: https://travis-ci.org/codevor/js-http-status.svg?branch=master
[travis-url]: https://travis-ci.org/codevor/js-http-status
[commitizen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]: http://commitizen.github.io/cz-cli/
[npm-version-badge]: https://badge.fury.io/js/js-http-status.svg
[npm-url]: https://npmjs.org/package/js-http-status
[npm-download-url]: https://img.shields.io/npm/dw/js-http-status

---
_Source: https://npm.io/package/js-http-status · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
