2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

@tryghost/errors: Added NoContentError

refs: https://github.com/TryGhost/Toolbox/issues/147

Used in Ghost as a GhostError construction
This commit is contained in:
Sam Lord 2021-11-30 14:23:06 +00:00
parent ac6cbf3d58
commit 932ba4e969

View file

@ -290,6 +290,15 @@ const ghostErrors = {
level: 'critical'
}, options));
}
},
NoContentError: class NoContentError extends GhostError {
constructor(options) {
super(merge({
errorType: 'NoContentError',
statusCode: 204,
hideStack: true
}, options));
}
}
};