mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
12 lines
289 B
JavaScript
12 lines
289 B
JavaScript
|
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;
|