Updated examples to work with latest version of koa

Changed this.error to this.throw. Checked if there was something else that was outdated but this looks like the only thing.