Looking to:

```
if (response.errorCode.code != SccOk)
   statusCode.fill(&response.errorCode);
else if (cerP->statusCode.code != SccOk)
   statusCode.fill(&cerP->statusCode);
else
   statusCode.fill(SccOk, "OK", "");
```

Not sure if it works... Note that in the normal case (i.e. successful delete) response.errorCode is not set (thus, its value is !=SccOk).

What about?

```
if (response.errorCode.code != NO_CODE)
   statusCode.fill(&response.errorCode);
else if (cerP->statusCode.code != NO_CODE)
   statusCode.fill(&cerP->statusCode);
else
   statusCode.fill(SccOk, "OK", "");
```