CAMEL-1330 added a unit test for testing the response code, also fixed this issue in Camel 1.x branch