Merge branch 'master' of github.com:koajs/koa
This commit is contained in:
commit
0ae852be03
1 changed files with 5 additions and 6 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
# Context
|
# Context
|
||||||
|
|
||||||
A Koa Context encapsulates node's `request` and `response` objects
|
A Koa Context encapsulates node's `request` and `response` objects
|
||||||
|
@ -114,8 +113,8 @@
|
||||||
### ctx.throw(msg, [status])
|
### ctx.throw(msg, [status])
|
||||||
|
|
||||||
Helper method to throw an error with a `.status` property
|
Helper method to throw an error with a `.status` property
|
||||||
that will allow Koa to respond appropriately. The following
|
defaulting to `500` that will allow Koa to respond appropriately.
|
||||||
combinations are allowed:
|
The following combinations are allowed:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
this.throw(403)
|
this.throw(403)
|
||||||
|
|
Loading…
Reference in a new issue