serverless / examples

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.
https://www.serverless.com/examples/
Other
11.45k stars 4.47k forks source link

fix: aws-node-express-dynamodb-api return early in case of validation error #770

Open KaranGauswami opened 1 year ago

KaranGauswami commented 1 year ago

In the aws-node-express-dynamodb-api example, it currently returns a 500 error in the case of a validation error, when it should be returning a 400 Bad Request. This PR aims to address this issue by implementing an early return.

Image