Store phone/tablet/photo-frame shells with catalogs, append pages from extra images or PDFs, and reorder drafts with drag-and-drop. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
712 B
TypeScript
21 lines
712 B
TypeScript
export class HttpError extends Error {
|
|
status: number;
|
|
|
|
constructor(status: number, message: string) {
|
|
super(message);
|
|
this.status = status;
|
|
this.name = "HttpError";
|
|
}
|
|
}
|
|
|
|
export const messages = {
|
|
tooLarge: "حجم یا تعداد صفحه بیش از حد مجاز است",
|
|
badType: "نوع فایل پشتیبانی نمیشود",
|
|
badEffect: "افکت نامعتبر است",
|
|
badFrame: "قالب نامعتبر است",
|
|
notFound: "کاتالوگ پیدا نشد",
|
|
forbiddenDelete: "اجازه حذف ندارید",
|
|
rateLimited: "تعداد ساخت از این آدرس بیش از حد مجاز است",
|
|
tokenRequired: "لینک حذف نامعتبر است",
|
|
} as const;
|