code: @Override
      public STATE onStatusReceived(HttpResponseStatus responseStatus) throws Exception {
          logger.trace("Status received {}", responseStatus);
          TransportsUtil.invokeFunction(STATUS, decoders, functions, Integer.class, new Integer(responseStatus.getStatusCode()), STATUS.name(), resolver);
          if (responseStatus.getStatusCode() == 101) {
              return STATE.UPGRADE;
          } else {
              logger.debug("Invalid status code {} for WebSocket Handshake", responseStatus.getStatusCode());
              status = Socket.STATUS.ERROR;
              throw new TransportNotSupported(responseStatus.getStatusCode(), responseStatus.getStatusText());
          }
      }
docs: {@inheritDoc}