Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ function redirectIfErr(req, res, next) {

All Error objects in this module are created with a `body` property. Restify
supports 'rendering' Errors as a response using this property. You can pass
Errors to `res.send` and the error will be rendered out as JSON, using the
Error object's status code:
Errors to `res.send` and the error will be rendered out as JSON:

```js
function render(req, res, next) {
Expand Down Expand Up @@ -294,6 +293,6 @@ npm run prepush

## License

Copyright (c) 2015 Netflix, Inc.
Copyright (c) 2015 Alex Liu

Licensed under the MIT license.