manicanldes-backend/src/common/errors/blog-errors.ts

18 lines
373 B
TypeScript

export const BLOG_ERRORS = {
BLOG_NOT_FOUND: [
404,
'Article not found',
'Scoped blog article lookup failed',
],
BLOG_CHANGED: [
409,
'Article version has changed',
'Stale blog command rejected',
],
BLOG_STATE_CONFLICT: [
409,
'Article state does not allow this action',
'Withdrawn article mutation rejected',
],
} as const;