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:
parent
90e6e8b37d
commit
976a232dc0
1 changed files with 8 additions and 0 deletions
|
@ -332,6 +332,14 @@ const ghostErrors = {
|
||||||
hideStack: true
|
hideStack: true
|
||||||
}, options));
|
}, options));
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
ConflictError: class ConflictError extends GhostError {
|
||||||
|
constructor(options) {
|
||||||
|
super(merge({
|
||||||
|
errorType: 'ConflictError',
|
||||||
|
statusCode: 409
|
||||||
|
}, options));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue