is-server-error
v1.0.1
Published
Check if a number is a HTTP server error code
Downloads
8
Maintainers
Readme
is-server-error
Check if a number is a HTTP server error code
Install
$ npm install --save is-server-error
Usage
var isServerError = require('is-server-error');
isServerError(400);
//=> false
isServerError(500);
//=> true
isServerError(507);
//=> true
Related
License
MIT © Arthur Verschaeve