Skip to content

Commit

Permalink
documentation fix for sendStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydaly committed Dec 26, 2018
1 parent 01a59e9 commit 87a718f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ res.sendStatus(304) // equivalent to res.status(304).send('Not Modified')
res.sendStatus(403) // equivalent to res.status(403).send('Forbidden')
```

**NOTE:** If an unsupported status code is send, it will return 'Unknown' as the body.
**NOTE:** If an unsupported status code is provided, it will return 'Unknown' as the body.

### header(key, value [,append])
The `header` method allows for you to set additional headers to return to the client. By default, just the `content-type` header is sent with `application/json` as the value. Headers can be added or overwritten by calling the `header()` method with two string arguments. The first is the name of the header and then second is the value. You can utilize multi-value headers by specifying an array with multiple values as the `value`, or you can use an optional third boolean parameter and append multiple headers.
Expand Down

0 comments on commit 87a718f

Please sign in to comment.