question: private StatusLine readStatusLine ( WebSocketInputStream input ) throws WebSocketException { String line ; try { line = input . readLine ( ) ; } catch ( IOException e ) { throw new WebSocketException ( WebSocketError . OPENING_HANDSHAKE_RESPONSE_FAILURE , "Failed to read an opening handshake response from the server: " + e . getMessage ( ) , e ) ; } if ( line == null || line . length ( ) == 0 ) { throw new WebSocketException ( WebSocketError . STATUS_LINE_EMPTY , "The status line of the opening handshake response is empty." ) ; } try { return new StatusLine ( line ) ; } catch ( Exception e ) { throw new WebSocketException ( WebSocketError . STATUS_LINE_BAD_FORMAT , "The status line of the opening handshake response is badly formatted. The status line is: " + line ) ; } }
target:  Read a status line from an HTTP server.