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