Skip to content

GatewayResponse

Source: src/AWS/ApiGateway/GatewayResponse.ts

Gateway response mapping for a REST API (e.g. DEFAULT_4XX, DEFAULT_5XX).

yield* ApiGateway.GatewayResponse("Default4xx", {
restApiId: api.restApiId,
responseType: "DEFAULT_4XX",
responseTemplates: { "application/json": '{"message":$context.error.messageString}' },
});