title: How can I hide my exception stack trace in python code which is deployed on aws lambda and integrated with API gateway
body: <p>I use raise Exception (&quot; message &quot;) and it returns this on browser
  {&quot;errorMessage&quot;: &quot;{&quot;httpStatus&quot;: 200, &quot;message&quot;: &quot;Exception: {\&quot;httpStatus\&quot;: 200, \&quot;message\&quot;: \&quot;Exception: [InternalServerError] Project not found\&quot;}&quot;}&quot;, &quot;errorType&quot;: &quot;Exception&quot;, &quot;stackTrace&quot;: [the stack trace]}</p>
  <p>The stack trace causes security issue</p>