title: Lambda return only 200 respose code
body: <p>I have created a sample lambda function for producing success &amp; error responses. function is like below</p>
  
  <pre><code>exports.handler = (event, context, callback) =&gt; {
  if(event.val1=="1")
  {
   callback(null, 'success');
  }else
  {
   callback(true, 'fail');
  }
  };
  </code></pre>
  
  <p>When i have tested this function using API Gateway , I got different response body, But the response code is Same (always return 200 ok response code). </p>
  
  <p>Is it possible to customize status code from lambda function(eg: need 500 for error responses &amp; 200 for success responses)?</p>