hunk.code_window:                                 new String(responseBody),
                                   e.getMessage()
                           ));
                       }
                       if (jsonNodeBody == null) {
                           throw Exceptions.propagate(new AppsmithPluginException(
                                   AppsmithPluginError.PLUGIN_ERROR,
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:                     if (response.getStatusCode() != null && !response.getStatusCode().is2xxSuccessful()) {
                           if (jsonNodeBody.get("error") != null && jsonNodeBody.get("error").get("message") !=null) {
                               throw Exceptions.propagate(new AppsmithPluginException(
                                       AppsmithPluginError.PLUGIN_ERROR,   jsonNodeBody.get("error").get("message").toString()));
                           }
                           throw Exceptions.propagate(new AppsmithPluginException(
                                   AppsmithPluginError.PLUGIN_ERROR,
                                   "Could not map request back to existing data"));
                       }
  
hunk.file_path: app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/BulkAppendMethod.java
hunk.type: add
file: package com.appsmith.server.dtos;
  
  import com.appsmith.external.exceptions.ErrorDTO;
  import lombok.AllArgsConstructor;
  import lombok.Getter;
  import lombok.NoArgsConstructor;
  import lombok.Setter;
  import lombok.ToString;
  
  import java.io.Serializable;
  
  @Getter
  @Setter
  @ToString
  @NoArgsConstructor
  @AllArgsConstructor
  public class ResponseDTO<T> implements Serializable {
  
      private static final long serialVersionUID = 8965011907233699993L;
  
      private ResponseMetaDTO responseMeta;
  
      private T data;
  
      public ResponseDTO(int status, T data, String message) {
          this.responseMeta = new ResponseMetaDTO(status, message);
          this.data = data;
      }
  
      public ResponseDTO(int status, T data, String message, boolean success) {
          this.responseMeta = new ResponseMetaDTO(status, message, success);
          this.data = data;
      }
  
      public ResponseDTO(int status, ErrorDTO errorDTO) {
          this.responseMeta = new ResponseMetaDTO(status, errorDTO);
      }
  
  }
  