title: how to correctly use integration response mapping in aws api gateway to return different http codes
body: <p>I can't seem to set my integration response for errors using the amazon api gateway</p>
  
  <p><img src="https://i.stack.imgur.com/4A4aW.png" alt="enter image description here"></p>
  
  <p>I added an integration response but it does not return the 400 error, instead it continues to return 200 response with</p>
  
  <pre><code>{
    "errorMessage": "foose",
    "errorType": "Error",
    "stackTrace": [
      "exports.handler (/var/task/index.js:11:19)"
    ]
  }
  </code></pre>