Skip to content

Commit

Permalink
[MINDEXER-239] Better HTTP error messages (#386)
Browse files Browse the repository at this point in the history
Slightly improve it, at least give some hint from where
and what we got. note: Java 11 HttpClient does NOT
expose reason phrase

---

https://issues.apache.org/jira/browse/MINDEXER-239
  • Loading branch information
cstamas authored Sep 11, 2024
1 parent 148f5f9 commit e79aec1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public void close() throws IOException {
inputStream.close();
}
}

@Override
public String toString() {
return response.uri() + " -> " + response.version() + " " + response.statusCode();
}
}

private final Duration timeout;
Expand Down

0 comments on commit e79aec1

Please sign in to comment.