Returning custom status code from AWS Proxy lambda function based on certain condition, like 204, 404, but I get always 200 code as a response

We are using below set up for AWS Lambda function. 1 Lambda type - Proxy lambda 2 Handler - 3 Using spring cloud functions for implementing core logic 4 Tried returning below objects as a return type by setting explicitly custom http status code APIGatewayProxyResponseEvent Message> I always get 200 irrespective whatever I set in the response object.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum