# http-status-responser

> all the constants values of http status codes

Latest version **1.0.10** (published 2023-03-15) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2023-03-15 |
| First published | 2023-02-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | poornagtx |
| Maintainers | poornagtx |
| Keywords | http, status, codes |

## Links

- npm: https://www.npmjs.com/package/http-status-responser
- Repository: https://github.com/PoornaGTX/http-status-codes-conststnts-npm-package
- Homepage: https://github.com/PoornaGTX/http-status-codes-conststnts-npm-package#readme
- Issues: https://github.com/PoornaGTX/http-status-codes-conststnts-npm-package/issues
- npm.io page: https://npm.io/package/http-status-responser

## Recent versions

- 1.0.10 (latest) — 2023-03-15
- 1.0.9 — 2023-03-13
- 1.0.8 — 2023-03-08
- 1.0.7 — 2023-03-06
- 1.0.6 — 2023-03-01
- 1.0.5 — 2023-02-27
- 1.0.4 — 2023-02-26
- 1.0.3 — 2023-02-24
- 1.0.2 — 2023-02-24
- 1.0.1 — 2023-02-24
- 1.0.0 — 2023-02-24

## README

# http-status-responser

The "http-status-responser" package is an npm package that provides a simple way to access all the HTTP response code constants values. This package defines a set of constants that represent the different HTTP status codes that can be returned by a server in response to a client request, such as 200 for "OK", 404 for "NOT_FOUND", and 500 for "INTERNAL_SERVER_ERROR". By using this package,
developers can easily reference these constants in their code instead of hardcoding the status codes, which can help to make the code more readable and maintainable.

## Installation

Install http-status-codes with npm

```bash
  npm i http-status-responser
```

## Usage/Examples

```javascript
import httpStatusResponser from "http-status-responser";

const login = async (req, res) => {
    //body
    res.status(httpStatusResponser.OK).json({ user });
}


## Available http codes in the latest version(1.0.6)

  OK: 200,
  CREATED: 201,
  ACCEPTED: 202,
  NON_AUTHORITATIVE_INFORMATION: 203,
  NO_CONTENT: 204,
  RESET_CONTENT: 205,
  PARTIAL_CONTENT: 206,
  MULTI_STATUS: 207,
  MULTIPLE_CHOICES: 300,
  MOVED_PERMANENTLY: 301,
  MOVED_TEMPORARILY: 302,
  SEE_OTHER: 303,
  NOT_MODIFIED: 304,
  BAD_REQUEST: 400,
  UNAUTHORIZED: 401,
  PAYMENT_REQUIRED: 402,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  METHOD_NOT_ALLOWED: 405,
  NOT_ACCEPTABLE: 406,
  PROXY_AUTHENTICATION_REQUIRED: 407,
  REQUEST_TIMEOUT: 408,
  CONFLICT: 409,
  REQUEST_TOO_LONG: 413,
  REQUEST_URI_TOO_LONG: 414,
  UNSUPPORTED_MEDIA_TYPE: 415,
  INTERNAL_SERVER_ERROR: 500,
  NOT_IMPLEMENTED: 501,
  BAD_GATEWAY: 502,
  SERVICE_UNAVAILABLE: 503,
  HTTP_VERSION_NOT_SUPPORTED: 505,
  NETWORK_AUTHENTICATION_REQUIRED: 511,

```

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