aws-sdk-mock icon indicating copy to clipboard operation
aws-sdk-mock copied to clipboard

Return anothers code states in callback

Open anjopater opened this issue 7 years ago • 1 comments

     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...

anjopater avatar Apr 06 '17 15:04 anjopater

I suppose this is pretty much the same issue I've described here. Did you ever find a solution?

Thanks!

finferflu avatar Apr 25 '17 20:04 finferflu