type error = { name: string; message: string; detail?: string; status?: number; }; export type { error };