code: def model_exceptions(vk, model):
      
      model['exceptions'] = {}
      model['errors'] = {}
  
      all_codes = model['enums']['VkResult']
      success_names = set()
      error_names = set()
  
      commands = [x for x in vk['registry']['commands']['command']]
  
      for command in commands:
          successes = command.get('@successcodes', '').split(',')
          errors = command.get('@errorcodes', '').split(',')
          success_names.update(successes)
          error_names.update(errors)
  
      for key, value in all_codes.items():
          if key.startswith('VK_RESULT') or key == 'VK_SUCCESS':
              continue
          name = inflection.camelize(key.lower())
  
          if key in success_names:
              model['exceptions'][value] = name
          elif key in error_names:
              model['errors'][value] = name
          else:
              print('Warning: return code %s unused' % key)
docs: Fill the model with exceptions and errors
  
      model['exceptions'] = {val: 'name',...}
      model['errors'] = {val: 'name',...}