restify
Version:
REST framework
11 lines (8 loc) • 322 B
JavaScript
;
var errors = require('restify-errors');
// This allows Restify to work with restify-errors v6+
module.exports = {
RequestCloseError: errors.makeConstructor('RequestCloseError'),
RouteMissingError: errors.makeConstructor('RouteMissingError'),
AsyncError: errors.makeConstructor('AsyncError')
};