restify-errors-options-errno
🐛 Add errno to Restify's errors!
Based on restify-errors-options
DEPRECATED!!!
Install
$ npm install --save restify-errors-options-errno
Usage
const restifyErrorOtionsErrno = ;// Is extremely important to require restify-errors-options-errno before restify.const restify = ; restifyErrorOtionsErrno;var server = restify; server; const err = errno: '42'};console;//=> {code: 'MethodNotAllowed', message: '', errno: '42'}
Authors
- Simone Primarosa - simonepri
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details.