public boolean isOK(int... codes) {
       if (codes == null || codes.length == 0) {
           codes = new int[]{200, 201, 204, 206};
       }
        boolean isOK = false;
        for (int code : codes) {
            if (status == code) {
                isOK = true;
            }
        }
      
        return isOK;
    }