const response = {
statusCode: 200,
body: JSON.stringify('File Uploaded Successfully.')
};
return response;
I am guessing you are looking at lambda template, which include statusCode in the return but there is no requirement to return a status code, or in fact, anything at all.