fix http code setting (midcom header function has only two params), merge the code specification to content-type header call