See ConfD 6.4 UG Section 21 REST API and 21.8.1. User extended error messages:
For data providers, hooks, transforms etc there exist a possibility to add extensions to error messages and change error codes before sending errors back to the server from the callbacks (see: Section 28.14, “Error Message Customization”).
Our issue is that when we throw new DpCallbackExtendedException we always get back 500 Internal Server Error! According to your documenation if I change the errorCode this can be changed. In our case whatever errorCode we use we always get back 500 !!!
Apart from this in the documentation a function is mentioned. format_error() callback
BUT can please assist us on Java equivalent, since there is no correlation between C and Java !
We also receive the passed text !
BUT if you trigger this with an rpc call you get the text but i cannot find a way to trigger the http error code back since confD always reports it with 500 and not something else !
in initial message, you did not fully specify which northbound interface do you use. OK, from Conny’s and yours response it can be deduced that it is REST. If DpCallbackExtendedException does not return correct error code, as specified in 21.8., I suggest you file RT ticket with minimal example to illustrate the issue.