UNPKG

toggl-webhook

Version:
22 lines (21 loc) 590 B
export declare abstract class RequestError extends Error { abstract readonly code: string; toJSON(): { name: string; message: string; stack: string | undefined; code: string; }; } export declare class BadRequestError extends RequestError { readonly code: string; constructor(message: string); } export declare class NotFoundError extends RequestError { readonly code: string; constructor(message: string); } export declare class ForbiddenError extends RequestError { readonly code: string; constructor(message: string); }