@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));
}
}
};