com.databricks.jdbc.common.util.HttpUtil Maven / Gradle / Ivy
package com.databricks.jdbc.common.util;
import org.apache.http.client.methods.CloseableHttpResponse;
public class HttpUtil {
/** Check if the HTTP response is successful */
public static boolean isSuccessfulHttpResponse(CloseableHttpResponse response) {
return response.getStatusLine().getStatusCode() >= 200
&& response.getStatusLine().getStatusCode() < 300;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy