0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/errors/maintenance.js

12 lines
289 B
JavaScript
Raw Normal View History

function Maintenance(message) {
this.message = message;
this.stack = new Error().stack;
this.statusCode = 503;
this.errorType = this.name;
}
Maintenance.prototype = Object.create(Error.prototype);
Maintenance.prototype.name = 'Maintenance';
module.exports = Maintenance;