UNPKG

api-stds

Version:

Standardized API response and error handling toolkit with async handler, requestId, logging, and configurable formats.

8 lines (7 loc) 216 B
export declare class ApiError extends Error { statusCode: string; data: null; success: boolean; errors: any[]; constructor(statusCode: string, message?: string, errors?: any[], stack?: string); }