MULE-8018: Merge http connector code cleanup

Rethinking about this: why this refers to a status code? This should throw an exception and the one cacthing the exception replies with the status code