1 | import { APIGatewayProxyResult } from "aws-lambda";
|
2 | export interface APIGatewayResponse extends Omit<APIGatewayProxyResult, "body"> {
|
3 | body: unknown | undefined;
|
4 | }
|
5 | export declare function badRequest(details: string | undefined): APIGatewayResponse;
|
6 | export declare function forbidden(details: string | undefined): APIGatewayResponse;
|
7 | export declare function unauthorized(details: string | undefined): APIGatewayResponse;
|
8 | export declare function internalServerError(): APIGatewayResponse;
|
9 | export declare function notFound(details: string | undefined): APIGatewayResponse;
|
10 | export declare function requestTimeout(details: string | undefined): APIGatewayResponse;
|
11 | export declare function ok<T>(result: T): APIGatewayResponse;
|
12 | export declare function created<T>(result: T): APIGatewayResponse;
|
13 | export declare function noContent<T>(): APIGatewayResponse;
|