An open API service indexing awesome lists of open source software.

https://github.com/shgysk8zer0/http-status

A simple module for HTTP status codes
https://github.com/shgysk8zer0/http-status

http http-status javascript module

Last synced: 10 months ago
JSON representation

A simple module for HTTP status codes

Awesome Lists containing this project

README

          

# @shgysk8zer0/http-status
A simple module for HTTP status codes

[![GitHub license](https://img.shields.io/github/license/shgysk8zer0/http-status.svg)](https://github.com/shgysk8zer0/http-status/blob/master/LICENSE)
[![GitHub last commit](https://img.shields.io/github/last-commit/shgysk8zer0/http-status.svg)](https://github.com/shgysk8zer0/http-status/commits/master)
[![GitHub release](https://img.shields.io/github/release/shgysk8zer0/http-status?logo=github)](https://github.com/shgysk8zer0/http-status/releases)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/shgysk8zer0?logo=github)](https://github.com/sponsors/shgysk8zer0)

[![CodeQL](https://github.com/shgysk8zer0/http-status/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/shgysk8zer0/http-status/actions/workflows/codeql-analysis.yml)
[![npm](https://img.shields.io/npm/v/@shgysk8zer0/http-status)](https://www.npmjs.com/package/@shgysk8zer0/http-status)
![npm bundle size gzipped](https://img.shields.io/bundlephobia/minzip/@shgysk8zer0/http-status)
[![npm](https://img.shields.io/npm/dw/@shgysk8zer0/http-status?logo=npm)](https://www.npmjs.com/package/@shgysk8zer0/http-status
)

[![GitHub followers](https://img.shields.io/github/followers/shgysk8zer0.svg?style=social)](https://github.com/shgysk8zer0)
![GitHub forks](https://img.shields.io/github/forks/shgysk8zer0/http-status.svg?style=social)
![GitHub stars](https://img.shields.io/github/stars/shgysk8zer0/http-status.svg?style=social)
[![Twitter Follow](https://img.shields.io/twitter/follow/shgysk8zer0.svg?style=social)](https://twitter.com/shgysk8zer0)

[![Donate using Liberapay](https://img.shields.io/liberapay/receives/shgysk8zer0.svg?logo=liberapay)](https://liberapay.com/shgysk8zer0/donate "Donate using Liberapay")
- - -

- [Code of Conduct](./.github/CODE_OF_CONDUCT.md)
- [Contributing](./.github/CONTRIBUTING.md)

## Installation

### NPM

```bash
npm i @shgysk8zer0/http-status
```

## Usage

### ES Module

```js
import { status } from '@shgysk8zer0/http-status';
// or
import { status } from 'https://unpkg.com/@shgysk8zer0@1.0.2/http-status.js';
console.log(status.OK); // 200
```