code: public boolean setCustomResponse(String pathName, String customResponse) throws Exception {
          // figure out the new ordinal
          int nextOrdinal = this.getNextOrdinalForMethodId(-1, pathName);
  
          // add override
          this.addMethodToResponseOverride(pathName, "-1");
  
          // set argument
          return this.setMethodArguments(pathName, "-1", nextOrdinal, customResponse);
      }
docs: Set a custom response for this path
  
  @param pathName name of path
  @param customResponse value of custom response
  @return true if success, false otherwise
  @throws Exception exception