Archive for July, 2017

AWS response status is always 200

Saturday, July 29th, 2017

There is a task, which can’t be avoided when developing serverless applicatoins on Amazon Web Services:

How to return a custom status code from a REST API?

One of the approaches is to use “prefix mapping”, like for example is shown in this amazon blog post: Error Handling Patterns in Amazon API Gateway and AWS Lambda by Bryan Liston.

The only problem is that the approach doesn’t always work. After a long debuggin session with many false tries, I’ve found the reason.

(more…)