Amazon Api Gateway

Create an api that call a lambda function and return a http code depends from the lambda computation.


code inside the python lambda function

# this will propagate a 200 ok
return "OK"        

#this will create a 500
raise Exception('Error' + str(e))
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License