Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
module.exports.hello = (event, context, callback) => {
const errorResponse = {
message: "Error! Dude You sent the wrong parameters"
// Use JSON.Stringify(), else Integration Response
// cannot read your error message.
// If not used, the Integration Response will read
// the response as [Object Object] which will make it
// impossible to detect the status code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment