AWS Application Load Balancer - Lambda response contains only body

429 views Asked by At

Currently I'm switching from AWS API Gateway to Application Load Balancer for supporting calls to my Lambda function. While API Gateway response contains all data, including "statusCode", the ALB returns only "body". Is there any way to make ALB return "statusCode" as well?

Maybe it has something to do with the response header. I have it set up as:

"headers": { "Content-Type": "application/json" }

The language of Lambda is JavaScript. The ALB rule is set to "Forwarding". Protocol is HTTP.

0

There are 0 answers