http-class
Version:
http class for response codes
26 lines • 541 B
TypeScript
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