Wouldn't be a good idea to add methods to the ResponseImpl such as
public boolean sucessfull(){
int status = this.getStatus();
Status statusCode = Status.fromStatusCode(status);
if (statusCode!=null && statusCode.getFamily() !=
Family.SUCCESSFUL) {
return false;
}
return true;
}
or perhaps more general
public boolean resulted(Family family){
int status = this.getStatus();
Status statusCode = Status.fromStatusCode(status);
if (statusCode!=null && statusCode.getFamily() != family) {
return false;
}
return true;
}