mirror of
https://github.com/papra-hq/papra.git
synced 2025-12-20 12:19:46 -06:00
14 lines
393 B
TypeScript
14 lines
393 B
TypeScript
import { createErrorFactory } from '../shared/errors/errors';
|
|
|
|
export const createDocumentNotFoundError = createErrorFactory({
|
|
message: 'Document not found.',
|
|
code: 'document.not_found',
|
|
statusCode: 404,
|
|
});
|
|
|
|
export const createDocumentIsNotDeletedError = createErrorFactory({
|
|
message: 'Document is not deleted, cannot restore.',
|
|
code: 'document.not_deleted',
|
|
statusCode: 400,
|
|
});
|