KyleNeedham / http-status-enum

HTTP status code enum.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

HTTP status code enum.

License:MIT License


Languages

Language:JavaScript 79.7%Language:TypeScript 20.3%