I dont quite understand what the first IF statement represents ("page have status B"), but MWG has an event called Set.HTTPStatus("XXX"). You can fill in the HTTP status code you desire.
Thank Jon for answer, Set.HTTPStatus() looks good.
I have one more question. Can ICAPClient control http status based on ICAPServer values?
If ICAPServer returned value = 10 how ICAPClient can send http status = 200? Maybe exist manual how's step by step show how can do this?