@robinblomberg/http-status
v1.3.0
Published
Enumeration of all HTTP statuses and status texts.
Downloads
10
Readme
HTTP status
Enumeration of all HTTP statuses and status texts.
Installation
npm install @robinblomberg/http-status
Usage
import { status } from '@robinblomberg/http-status';
status.clientError.BAD_REQUEST;
// 400
statusText[status.clientError.BAD_REQUEST];
// 'Bad Request'