code: private void parseViewError(boolean last) {
          if (!last) {
              return;
          }
  
          if (responseHeader.getStatus().code() == 200) {
              int openBracketPos = responseContent.bytesBefore((byte) '[') + responseContent.readerIndex();
              int closeBracketLength = findSectionClosingPosition(responseContent, '[', ']') - openBracketPos + 1;
              ByteBuf slice = responseContent.slice(openBracketPos, closeBracketLength);
              viewErrorObservable.onNext("{\"errors\":" + slice.toString(CharsetUtil.UTF_8) + "}");
          } else {
              viewErrorObservable.onNext("{\"errors\":[" + responseContent.toString(CharsetUtil.UTF_8) + "]}");
          }
  
          viewErrorObservable.onCompleted();
          viewParsingState = QUERY_STATE_DONE;
          responseContent.discardReadBytes();
      }
docs: The query response is an error, parse it and attache it to the observable.
  
  @param last if the given content chunk is the last one.