export type CustomError = Error & { code?: string };