is-server-error

1.0.1 • Public • Published

is-server-error Build Status

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

Package Sidebar

Install

npm i is-server-error

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • arthurvr