We need to send a custom error message to the rest/netconf requests, if authentication is successful, but failed to met certain conditions. In this case we return confd error in authentication callback and this returns ‘401 authentication needed’ message. But we want to send additional custom message.
We are using ‘dp.auth_seterr’, but this logs our messages in audit log file.
Could you please let me know is there a way to send custom message.