aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-10-16 21:27:26 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-10-16 21:27:26 +0200
commit6460ca46e47f43a87146da4755d8d45e2bba9560 (patch)
tree45059d0b6f659e1287933ed8c18753a0be1107d9
parent452c0de1615f5f7e18c6bf8e8c9ca4f81607ced8 (diff)
downloadblogc-6460ca46e47f43a87146da4755d8d45e2bba9560.tar.gz
blogc-6460ca46e47f43a87146da4755d8d45e2bba9560.tar.bz2
blogc-6460ca46e47f43a87146da4755d8d45e2bba9560.zip
github-lambda: http accept code is 202, not 201
-rw-r--r--src/blogc-github-lambda/lambda_function.py.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blogc-github-lambda/lambda_function.py.in b/src/blogc-github-lambda/lambda_function.py.in
index e969329..08b2e2b 100644
--- a/src/blogc-github-lambda/lambda_function.py.in
+++ b/src/blogc-github-lambda/lambda_function.py.in
@@ -245,7 +245,7 @@ def api_gateway_handler(event):
traceback.print_exc()
return api_gateway_response(500, 'ERROR: %s' % err)
- return api_gateway_response(201, 'ACCEPTED')
+ return api_gateway_response(202, 'ACCEPTED')
def lambda_handler(event, context):