title: API Gateway: JSON 5+ MB Gives error "413, Request Too Long"
body: <p>I have sample json which is more than 5MB,</p>
  
  <p>When not using lambda integration &amp; try to do post request</p>
  
  <pre><code>413 Request Too Long
  </code></pre>
  
  <p>If I use lambda integration it gives</p>
  
  <pre><code>502 Internal server error
  </code></pre>
  
  <p>Request does not reach to my lambda function</p>
  
  <p>In response headers I'm getting following error:</p>
  
  <pre><code>X-Cache: Error from cloudfront
  </code></pre>
  
  <p>If I use mock service it works &amp; gives 200 response.</p>
  
  <p>As per <a href="http://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html" rel="nofollow noreferrer">Api documentation</a> it supports max 10MB. </p>
  
  <p>I want to get this json in my request. </p>
  
  <p>Any solutions?</p>