/** * Generic http error */ export declare class HttpError implements Error { code: number; error?: any; message: string; stack: string; name: string; constructor(code: number, message?: string | null, error?: any); } /** * Error class for http status 400 */ export declare class BadRequestError extends HttpError { constructor(message?: string | null, error?: any); } /** * Error class for http status 401 */ export declare class UnauthorizedError extends HttpError { constructor(message?: string | null, error?: any); } /** * Error class for http status 403 */ export declare class ForbiddenError extends HttpError { constructor(message?: string | null, error?: any); } /** * Error class for http status 404 */ export declare class NotFoundError extends HttpError { constructor(message?: string | null, error?: any); } /** * Error class for http status 406 */ export declare class NotAcceptableError extends HttpError { constructor(message?: string | null, error?: any); } /** * Error class for http status 412 */ export declare class PreconditionFailedError extends HttpError { constructor(message?: string | null, error?: any); } /** * Error class for http status 415 */ export declare class UnsupportedMediaTypeError extends HttpError { constructor(message?: string | null, error?: any); } /** * Error class for http status 500 */ export declare class InternalServerError extends HttpError { constructor(message?: string | null, error?: any); } /** * Error class for http status 501 */ export declare class NotImplementedError extends HttpError { constructor(message?: string | null, error?: any); }