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