Messtone LLC Manages Devices Enables How to get the HTTP Method in AWS Lambda?exports.handler=function(event,context){if(context.httpMethod){console.log(‘HTTP method:’,context.httpMethod)}console.log(‘Received event:’,JSON.stringify(event, null,2));Mapping templates {“http_method”:”$context.httpMethod”} import boot3 import json print(‘Loading function’) dynamo=boot3.client(‘dynamodb’) def respond(err,res=None)return{‘statusCode’:’400′ if err else 200′,’body’:err.message if err else json.dumps(res),’headers’:{‘Content-Type: application/json’},} def lambda_handler(event,context):”’Demonstrates a simple HTTP endpoint using API Gateway.Messtone have full access to the request status code.