Name: js-handler/node_modules/restify/lib/errors/index.js
| 1: | // Copyright 2012 Mark Cavage, Inc. All rights reserved. |
| 2: | |
| 3: | var httpErrors = require('./http_error'); |
| 4: | var restErrors = require('./rest_error'); |
| 5: | |
| 6: | |
| 7: | module.exports = {}; |
| 8: | |
| 9: | Object.keys(httpErrors).forEach(function (k) { |
| 10: | module.exports[k] = httpErrors[k]; |
| 11: | }); |
| 12: | |
| 13: | // Note some of the RestErrors overwrite plain HTTP errors. |
| 14: | Object.keys(restErrors).forEach(function (k) { |
| 15: | module.exports[k] = restErrors[k]; |
| 16: | }); |
