add docs for .throw() additions

This commit is contained in:
TJ Holowaychuk 2013-12-20 15:34:48 -08:00
parent 87c03aff61
commit 5eb53a7f7a
1 changed files with 1 additions and 0 deletions

View File

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