code: void handleResponse(ByteBuf response) {
      long requestId = response.readLong();
      byte status = response.readByte();
      switch (status) {
        case SUCCESS:
          try {
            handleResponseSuccess(requestId, readResponse(response));
          } catch (SerializationException e) {
            handleResponseFailure(requestId, e);
          }
          break;
        case FAILURE:
          try {
            handleResponseFailure(requestId, readError(response));
          } catch (SerializationException e) {
            handleResponseFailure(requestId, e);
          }
          break;
      }
      response.release();
    }
docs: Handles response.