UNPKG

@m-ld/gateway

Version:

m-ld gateway for services

11 lines (10 loc) 683 B
import errors from 'restify-errors'; export declare const toHttpError: (e: any) => errors.HttpError; export declare const UnauthorizedError: typeof errors.UnauthorizedError; export declare const MethodNotAllowedError: typeof errors.MethodNotAllowedError; export declare const ForbiddenError: typeof errors.ForbiddenError; export declare const ConflictError: typeof errors.ConflictError; export declare const BadRequestError: typeof errors.BadRequestError; export declare const NotFoundError: typeof errors.NotFoundError; export declare const PreconditionFailedError: typeof errors.PreconditionFailedError; export declare const InternalServerError: typeof errors.InternalServerError;