Skip to main content

[tyrus~code:1d7913a8] RFC suggests 426 for HTTP response code incase of version mismatch.

  • From:
  • To:
  • Subject: [tyrus~code:1d7913a8] RFC suggests 426 for HTTP response code incase of version mismatch.
  • Date: Mon, 12 Aug 2013 22:51:55 +0000

Project:    tyrus
Repository: code
Revision:   1d7913a876c5c40901abd10ab4b9f031a65eef80
Author:     jerseyrobot
Date:       2013-08-12 21:15:04 UTC
Link:       

Log Message:
------------
RFC suggests 426 for HTTP response code incase of version mismatch.



Revisions:
----------
1d7913a876c5c40901abd10ab4b9f031a65eef80


Modified Paths:
---------------
protocol/websocket/src/main/java/org/glassfish/tyrus/websockets/WebSocketEngine.java


Diffs:
------
--- 
a/protocol/websocket/src/main/java/org/glassfish/tyrus/websockets/WebSocketEngine.java
+++ 
b/protocol/websocket/src/main/java/org/glassfish/tyrus/websockets/WebSocketEngine.java
@@ -322,7 +322,7 @@ public class WebSocketEngine {
     private static void handleUnsupportedVersion(final Connection connection,
                                                  final WebSocketRequest 
request) {
         WebSocketResponse response = new WebSocketResponse();
-        response.setStatus(400);
+        response.setStatus(426);
         response.getHeaders().put(WebSocketEngine.SEC_WS_VERSION, 
Version.getSupportedWireProtocolVersions());
         connection.write(response);
     }





[tyrus~code:1d7913a8] RFC suggests 426 for HTTP response code incase of version mismatch.

jerseyrobot 08/12/2013
 
 
Close
loading
Please Confirm
Close