StopIteration is handled in get and post handlers