add docs for .throw() additions

This commit is contained in:
TJ Holowaychuk 2013-12-20 15:34:48 -08:00
parent 87c03aff61
commit 5eb53a7f7a

View file

@ -128,6 +128,7 @@ Note: koa uses the [cookies](https://github.com/jed/cookies) module where option
```js ```js
this.throw(403) this.throw(403)
this.throw('name required', 400) this.throw('name required', 400)
this.throw(400, 'name required')
this.throw('something exploded') this.throw('something exploded')
``` ```