Converts a handler response to an API Gateway proxy result. Handles APIGatewayProxyResult, Response objects, and plain objects.
The handler response (APIGatewayProxyResult, Response, or plain object)
The response status code to return
An API Gateway proxy result
Converts a handler response to an API Gateway proxy result. Handles APIGatewayProxyResult, Response objects, and plain objects.