1.0.2 • Published 8 years ago

http-status-enum v1.0.2

Weekly downloads
552
License
MIT
Repository
github
Last release
8 years ago

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