http-status-enum
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Http Status Enum

Http Status Enum is a very simple http status code enum that allows you to access a status either by the numeric value or string description.

Usage

import HTTP_STATUS_CODES from 'http-status-enum';
 
HTTP_STATUS_CODES['500'] // INTERNAL_SERVER_ERROR
HTTP_STATUS_CODE.INTERNAL_SERVER_ERROR // 500

Readme

Keywords

Package Sidebar

Install

npm i http-status-enum

Weekly Downloads

2,746

Version

1.0.2

License

MIT

Last publish

Collaborators

  • kyle_needham