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