if (Strings.isNullOrEmpty(vip)) {
serverResponse.getHeaders().set("Content-Type", "application/xml");
serverResponse.writeString("<status><status_code>500</status_code><message>vip not supplied</message></status>");
logger.error("VIP not supplied");
return serverResponse.close();
}
The current error makes it difficult to troubleshoot the issue and "throwable" may contain helpful tips on the reason for the failure:
In the 2 occurrences where ERROR_RESPONSE is being used, here's an improved response:
here
and here