Hardening/http status code from mongo functions

### Description
service routines now saves the output of the mongo functions in ciP->httpStatusCode.
Fixed a failure in xml_check for a previous PR.