Skip to content

Instantly share code, notes, and snippets.

@marklawlor
Last active November 1, 2015 22:55
Show Gist options
  • Save marklawlor/538b7b87bd0fcbd081cc to your computer and use it in GitHub Desktop.
Save marklawlor/538b7b87bd0fcbd081cc to your computer and use it in GitHub Desktop.
JAWS JSON error responses
.*"status":400.*
exports.handler = function(event, context) {
context.fail(JSON.stringify({
status: 400,
body: {
test: "message"
}
}));
};
$input.path('$.errorMessage')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment