code: private Response addContent(String spaceID, String contentID, String storeID) {
  
          StringBuilder msg = new StringBuilder("adding content(");
          msg.append(spaceID);
          msg.append(", ");
          msg.append(contentID);
          msg.append(", ");
          msg.append(storeID);
          msg.append(")");
          try {
              log.info(msg.toString());
  
              return doAddContent(spaceID, contentID, storeID);
  
          } catch (InvalidIdException e) {
              return responseBad(msg.toString(), e, BAD_REQUEST);
  
          } catch (ResourcePropertiesInvalidException e) {
              return responseBad(msg.toString(), BAD_REQUEST);
  
          } catch (ResourceNotFoundException e) {
              return responseNotFound(msg.toString(), e, NOT_FOUND);
  
          } catch (ResourceChecksumException e) {
              return responseBad(msg.toString(), e, CONFLICT);
  
          } catch (ResourceException e) {
              return responseBad(msg.toString(), e, INTERNAL_SERVER_ERROR);
  
          } catch (Exception e) {
              return responseBad(msg.toString(), e, INTERNAL_SERVER_ERROR);
          }
      }
docs: see ContentResource.addContent()
  
  @return 201 response indicating content added successfully