JSPM

http-status-enum

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1578
  • Score
    100M100P100Q114284F
  • License MIT

Comprehensive list of http status codes in a tidy typescript enum.

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