add docs for .throw() additions
This commit is contained in:
parent
87c03aff61
commit
5eb53a7f7a
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue