http-status-enum
v1.0.2
Published
Comprehensive list of http status codes in a tidy typescript enum.
Downloads
11,957
Readme
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