Seems that in your procedure is an error. Can you surround your procedure call with a try/catch block like following to catch the error and return the message.
try{
// ... procedure call
}catch(e){
$.response.setBody(e.toString());
}
Seems that in your procedure is an error. Can you surround your procedure call with a try/catch block like following to catch the error and return the message.
try{
// ... procedure call
}catch(e){
$.response.setBody(e.toString());
}