UNPKG

http-class

Version:
26 lines 541 B
export declare type Literal = { [key: string]: any; }; export interface ErrorInfo { name?: string; key?: string; data?: Literal; } /** * */ export default class HttpError extends Error { static CODE: number; statusCode: number; name: string; message: string; key?: string; data?: Literal; constructor(statusCode: number, name: string, message: string, key?: string, data?: Literal); } /** * */ export declare class GenericHttpError extends HttpError { } //# sourceMappingURL=HttpError.d.ts.map