This is a package to return a response when you have proxy integration on a route
install package :
yarn add aws-lambda-proxy-response-object
or with npm
npm install --save aws-lambda-proxy-response-object
Get response :
import {Response} from 'aws-lambda-proxy-response-object'
then inside a function :
return Response(200,{success:true})