shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/transaction { "collections" : { "read" : "products" }, "action" : "function () { throw 'doh!'; }" } HTTP/1.1 500 Internal Error content-type: application/json; charset=utf-8 { "exception" : "doh!", "error" : true, "code" : 500, "errorNum" : 500, "errorMessage" : "An error has occurred during execution: doh!" }