code: def _check_err(code, request_id):
      
      if code == 3006:
          raise CalendarNotExist()
      elif code == 3007:
          raise CalendarOwnByDiffAccount()
      elif code == 3008:
          raise AccountNotExist()
      elif code == 3009 or code == 3013:
          raise AccountUsedByDiffUser()
      elif code == 3010:
          raise InvalidPermissionLevel()
      elif code == 3011:
          raise FailedToClosePublisher()
      elif code == 3014:
          raise InvalidEmail()
      elif code == 3015:
          raise NoAllowedPermission()
      elif code == 3016:
          raise AccountNameEmpty()
      elif code == 3017 or code == 3018:
          raise ErrorCreatingEditor()
      else:
          logging.getLogger(__name__).warn(
              "Unexpected Error Code: %s with %s" % (
                  code, request_id))
          raise UnexpectedError()
docs: :param code: an integer value
      :param request_id: campus url identifying the request
      Check possible error code returned in the response body
      raise the corresponding TrumbaException