@Override
    public boolean hasError(Response<ByteSource> rs) {
        StatusType statusType = StatusType.valueOf(rs.getStatus());
        return (statusType == StatusType.CLIENT_ERROR || statusType == StatusType.SERVER_ERROR);
    }
@ Override public boolean hasError ( Response < ByteSource > rs ) { StatusType statusType = StatusType . valueOf ( rs . getStatus ( ) ) ; return ( statusType == StatusType . CLIENT_ERROR || statusType == StatusType . SERVER_ERROR ) ; }
Returns TRUE in case status code of response starts with 4 or 5