api-gateway-errors
v0.0.5
Published
This module was created to handle the strangeness of API Gateway's error handling.
Downloads
9
Readme
api-gateway-errors
This module was created to handle the strangeness of API Gateway's error handling.
#set ($errorJson = $util.parseJson($input.path('$.errorMessage')))
#if("$errorJson.message" != '')
{
"message" : "$errorJson.message",
"type" : "$errorJson.name"
}
#else
{
"message" : "There was an error.",
"type" : "Error"
}
#end