aws-sdk-mock
aws-sdk-mock copied to clipboard
Return anothers code states in callback
AwsMock.mock('S3', 'deleteObjects', function (params, callback) {
if(params.Bucket === 'tm-test'){
callback(null,'error'); //how return here a bad request state code, like 500, 501, etc..
} else {
callback(null,'sucess');
}
});
Alway in my response get a 200 state code...
I suppose this is pretty much the same issue I've described here. Did you ever find a solution?
Thanks!