import com.badlogic.gdx.utils.StreamUtils;
public class NetJavaImpl {
static class HttpClientResponse implements HttpResponse {
private HttpURLConnection connection;
private HttpStatus status;
<BUG>private InputStream inputStream;</BUG>
public HttpClientResponse (HttpURLConnection connection) throws IOException {
this.connection = connection;
<BUG>try {
this.inputStream = connection.getInputStream();
} catch (IOException e) {
this.inputStream = connection.getErrorStream();
}</BUG>
try {

import com.badlogic.gdx.utils.StreamUtils;
public class NetJavaImpl {
static class HttpClientResponse implements HttpResponse {
private HttpURLConnection connection;
private HttpStatus status;
public HttpClientResponse (HttpURLConnection connection) throws IOException {
this.connection = connection;
try {
this.status = new HttpStatus(connection.getResponseCode());
