We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6692630 + a706662 commit 344d59eCopy full SHA for 344d59e
1 file changed
websockets/src/main/java/com/appunite/websocket/WebSocketConnection.java
@@ -284,7 +284,7 @@ private static void verifyHandshakeStatusLine(@Nonnull StatusLine statusLine)
284
throws WrongWebsocketResponse {
285
checkNotNull(statusLine);
286
if (statusLine.getStatusCode() != HttpStatus.SC_SWITCHING_PROTOCOLS) {
287
- throw new WrongWebsocketResponse("Wrong http response status");
+ throw new WrongWebsocketResponse("Wrong http response status: " + statusLine.getReasonPhrase());
288
}
289
290
0 commit comments