HttpResponse response = this.httpClient.execute(put);
//Expect a 4xx response
int status = response.getStatusLine().getStatusCode();
put.reset();
if (status >= 400 && status < 500) {
//OK
LOGGER.info("Request failed as expected with HTTP Code " + status);
} else {
throw new ValidationError("Query Request with bad HTTP Method (PUT) did not fail with 4xx status code as expected, got HTTP status code " + status);