else {
responseStatus = new ResponseStatus(StatusType.OK, null, null);
}
}
StatusType statusType = responseStatus.getStatusType();
sb.append(",\"status\":\"").append(statusType.lowerCaseString()).append("\"");
// There are reason and messages if the status is WARNING/ERROR.
if(statusType != StatusType.OK) {
// Status is warning or error.
if(statusType == StatusType.WARNING) {
List<Warning> warnings = data.getWarnings();