Fixing up response codes: TRIAL_EXISTS and TRIALS_EXHAUSTED