Check if a number is a HTTP Client Error code
$ npm install --save is-client-error
const isClientError = require('is-client-error');
isClientError(404);
//=> true
isClientError(303);
//=> false
MIT © Arthur Verschaeve
Check if a number is a HTTP Client Error code
$ npm install --save is-client-error
const isClientError = require('is-client-error');
isClientError(404);
//=> true
isClientError(303);
//=> false
MIT © Arthur Verschaeve