Change error handling in getAvailableTasks.
Restrict of input params for rest.createTask.