Is there a way to make the ML REST API on ML 8 do custom error handling ?

Right now, when we issue a request like this (for a non-existent document) :

GET /v1/documents/?uri=/1211/20/14/IC12112014.xml


We get a long (15 to 20-line) error message that starts off like this :

*RESTAPI-NODOCUMENT*: (err:FOER0000) Resource or document does not
exist:  category: content message: /1211/20/14/IC12112014.xml

     ...


I'm hoping I could just replace the error message with a custom one-liner.


Regards,

Danny
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to