code: func (m *Method) inheritResponses(parent map[HTTPCode]Response, dicts map[string]interface{},
  	apiDef *APIDefinition) {
  	if len(m.Responses) == 0 { // allocate if needed
  		m.Responses = map[HTTPCode]Response{}
  	}
  	for code, rParent := range parent {
  		resp, ok := m.Responses[code]
  		if !ok {
  			if optionalTraitProperty(fmt.Sprintf("%v", code)) { // don't inherit optional property if not exist
  				continue
  			}
  			resp = Response{HTTPCode: code}
  		}
  		resp.inherit(rParent, dicts, m.resourceTypeName, apiDef)
  		m.Responses[code] = resp
  	}
  
  }
docs: // inheritResponses inherit method's responses from parent responses
  // parent responses could be from resource type or a trait