GatewayResponse
Source:
src/AWS/ApiGateway/GatewayResponse.ts
Gateway response mapping for a REST API (e.g. DEFAULT_4XX, DEFAULT_5XX).
Gateway responses
Section titled “Gateway responses”yield* ApiGateway.GatewayResponse("Default4xx", { restApiId: api.restApiId, responseType: "DEFAULT_4XX", responseTemplates: { "application/json": '{"message":$context.error.messageString}' },});