We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ca23f commit 54e0978Copy full SHA for 54e0978
templates/api-to-lambda/{{cookiecutter.__project_name}}/Sources/HelloWorld/LambdaHandler.swift
@@ -32,6 +32,6 @@ struct HelloWorld: SimpleLambdaHandler {
32
func handle(_ event: APIGatewayV2Request, context: LambdaContext) async throws -> APIGatewayV2Response {
33
34
// Process the API Gateway event
35
- return APIGatewayV2Response(statusCode: HTTPResponseStatus(code: 200), body: "Hello from AWS!")
+ return APIGatewayV2Response(statusCode: .ok, body: "Hello from AWS!")
36
}
37
0 commit comments