export type TError = Error & { code?: string; data?: any; reason?: string; };