private String validateResponseCode(Number number) {
        int rcode = number.intValue();
        if (rcode >= 200 && rcode <= 299) {
            return null;
        }
        return "Unexpected HTTP response";
    }