export const ErrorCodes = { SUCCESS: 0, INVALID_PARAMS: 1001, UNAUTHORIZED: 2001, FORBIDDEN: 2003, BACKEND_REQUEST_FAILED: 4001, CONFIG_MISSING: 4002, INTERNAL_ERROR: 5001, } as const; export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];