title: Returning lambda's context.requestId in api gateway response body on timeout
body: <p>I need to return the lambda's context request Id back to the client when using an ApiGateway Lambda integration.  I've tried this in ApiGateway -&gt; Gateway Responses -&gt; Integration Timeout -&gt; Response Templates</p>
  <p><code>{ &quot;message&quot;:$context.error.messageString, &quot;request_id&quot;: $context.awsEndpointRequestId, &quot;request_id_2&quot;: $context.requestId }</code></p>
  <p>However only $context.requestId shows in the response body, not $context.awsEndpointRequestId.</p>
  <p>Is the awsEndpointRequestId ( which I assume is the lambda context request id ) not available if ApiGateway times out?</p>