This repository has no description
Something went wrong. Try again.
349 B · 19 lines
TypeScript
at commit 269ee4c7
1234567891011121314151617181920// API error types for frontend client
export interface ApiErrorResponse { message: string; code?: string; details?: any;}
export class ApiError extends Error { constructor( message: string, public statusCode: number, public code?: string, public details?: any, ) { super(message); this.name = 'ApiError'; }}