http-status-enum
Version:
Comprehensive list of http status codes in a tidy typescript enum.
12 lines (8 loc) • 348 B
Markdown
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.
```javascript
import HTTP_STATUS_CODES from 'http-status-enum';
HTTP_STATUS_CODES['500'] // INTERNAL_SERVER_ERROR
HTTP_STATUS_CODE.INTERNAL_SERVER_ERROR // 500
```