Code example for NoHttpResponseException

        throws IOException, HttpException, ParseException { 
        final int i = sessionBuffer.readLine(this.lineBuf);
        if (i == -1) {
            throw new NoHttpResponseException("The target server failed to respond");
        //create the status line from the status string 
        final ParserCursor cursor = new ParserCursor(0, this.lineBuf.length());
        final StatusLine statusline = lineParser.parseStatusLine(this.lineBuf, cursor);
        return this.responseFactory.newHttpResponse(statusline, null);
Stop searching for code, let great code find you!  Add Codota to your java IDE