UNPKG

@upv/ushi-shared

Version:

Shared DTOs, types, and utilities for the USHI platform (LMS, Trials, Social, Wallet).

9 lines (8 loc) 947 B
import type { ApiErrorContext } from '../errors'; export declare const unauthorized: (message?: string, context?: ApiErrorContext) => import("aws-lambda").APIGatewayProxyResultV2; export declare const forbidden: (message?: string, context?: ApiErrorContext) => import("aws-lambda").APIGatewayProxyResultV2; export declare const notFound: (message?: string, context?: ApiErrorContext) => import("aws-lambda").APIGatewayProxyResultV2; export declare const validationFailed: (message?: string, context?: ApiErrorContext) => import("aws-lambda").APIGatewayProxyResultV2; export declare const conflict: (message?: string, context?: ApiErrorContext) => import("aws-lambda").APIGatewayProxyResultV2; export declare const badRequest: (message?: string, context?: ApiErrorContext) => import("aws-lambda").APIGatewayProxyResultV2; export declare const internalError: (err: unknown, fallbackMessage?: string) => import("aws-lambda").APIGatewayProxyResultV2;