title: Lambda returning Http 200 on timeout to API Gateway
body: <p>I have a lambda function for which the timeout is set to 10 seconds. This lambda is triggered from an API Gateway. Now in my case, I could see in the cloudwatch logs that I am getting a Time out error <code>Task timed out after 10.00 seconds</code> which is fine. But the Response code I am getting in my API gateway logs is <code>Http-200</code>.</p>
  
  <p>I read few AWS docs and answers on Stack Overflow regarding this issue that if this is something which is expected or there is some issue with my code, but none of them seems to give clear answer as many of the questions are too old to follow.</p>
  
  <p>Also I did not find anything substantial in AWS docs as well.</p>