0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Add ConflictError (HTTP 409) to @tryghost/errors

no issue
This commit is contained in:
Sam Lord 2021-12-06 16:51:20 +00:00
parent 90e6e8b37d
commit 976a232dc0

View file

@ -332,6 +332,14 @@ const ghostErrors = {
hideStack: true
}, options));
}
},
ConflictError: class ConflictError extends GhostError {
constructor(options) {
super(merge({
errorType: 'ConflictError',
statusCode: 409
}, options));
}
}
};