generic-errors
Version:
Generic errors with common http codes
13 lines (10 loc) • 371 B
JavaScript
var BaseError = require('./baseError');
var captureStackTrace = require('capture-stack-trace');
function BadGateway() {
BaseError.apply(this, arguments);
captureStackTrace(this, BadGateway);
}
BadGateway.prototype = Object.create(BaseError.prototype);
BadGateway.prototype.constructor = BadGateway;
BadGateway.prototype.code = 502;
module.exports = BadGateway;