Package Exports
- http-status-enum
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (http-status-enum) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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