Skip to content

Commit 43bc794

Browse files
committed
Use HTTP status code as default exception message.
1 parent e8302e7 commit 43bc794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httprpc-client/src/main/java/org/httprpc/WebServiceProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public interface ErrorHandler {
183183

184184
message = textDecoder.read(errorStream);
185185
} else {
186-
message = null;
186+
message = String.format("HTTP %d", statusCode);
187187
}
188188

189189
throw new WebServiceException(message, statusCode);

0 commit comments

Comments
 (0)