Files
pwa/backend/src/shared/constants/errorCodes.ts
T
ar.badieiandCursor 370ac15471 Ship Novya PWA with backend for deployable production use.
Fix production TypeScript builds and add DEPLOY.md so the app can be hosted from this repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 21:01:52 +03:30

15 lines
484 B
TypeScript

export const ERROR_CODES = {
INTERNAL_ERROR: 'INTERNAL_ERROR',
VALIDATION_ERROR: 'VALIDATION_ERROR',
NOT_FOUND: 'NOT_FOUND',
UNAUTHORIZED: 'UNAUTHORIZED',
FORBIDDEN: 'FORBIDDEN',
CONFLICT: 'CONFLICT',
RATE_LIMIT_EXCEEDED: 'RATE_LIMIT_EXCEEDED',
SERVICE_UNAVAILABLE: 'SERVICE_UNAVAILABLE',
DATABASE_UNAVAILABLE: 'DATABASE_UNAVAILABLE',
INVALID_CREDENTIALS: 'INVALID_CREDENTIALS',
} as const;
export type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];