Does ConfD have the API to print out customized error message?

See Can maapi_cli_printf/write be called outside action callback?