numo-labs / aws-lambda-helper

:lollipop: Collection of helper methods for lambda
GNU General Public License v3.0
22 stars 2 forks source link

Invoking a lambda will always return as a 200, even when there is an error #21

Closed jruts closed 8 years ago

jruts commented 8 years ago

When calling a lambda it will always return with a 200 statusCode. Currently we have to check the payload to see if there is an error in there. We can put this logic in the helper so that we get an actual error in the callback we pass through the function.