fix error reporting in REST API for active directory