mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03: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:
parent
ac6cbf3d58
commit
932ba4e969
@ -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));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user