mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 17:21:58 +08:00
16 lines
293 B
JavaScript
16 lines
293 B
JavaScript
const {APIError} = require('../../../errors');
|
|
|
|
const ErrNoComment = new APIError('Comment must be provided', {
|
|
status: 400,
|
|
});
|
|
|
|
const ErrToxic = new APIError('Comment is toxic', {
|
|
status: 400,
|
|
translation_key: 'COMMENT_IS_TOXIC',
|
|
});
|
|
|
|
module.exports = {
|
|
ErrNoComment,
|
|
ErrToxic,
|
|
};
|