title: Can I return non-JSON data from an AWS lambda called through API gateway?
body: <p>I have a simple lambda in AWS that takes plain text (non-JSON) input and gives plain text (non-JSON) output, and it works when I test it in the Lambda Management Console. I'd like to call it by POSTing the input via HTTP, so I added API Gateway as a trigger, but it says "An error occurred during JSON parsing" - fair enough, because I didn't output JSON.</p>
  
  <p>I found a number of similar questions here, but they focused on fixing the JSON. My question is whether it's possible to avoid it altogether. Can I configure API Gateway to just pass through the request and response bodies, or is there another way to get an HTTP request to my lambda that would allow that?</p>