You can troubleshoot your solution in development by reviewing the errors and warnings in the API log file.
The hdmengine returns the error code and you can get the text description of the error code in UI by using the Hdmclient_GetErrorDescription function.
See the list of the possible error codes below: