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