Skip to content

Commit

Permalink
docs: mention the body property on the error objects
Browse files Browse the repository at this point in the history
closes #148
  • Loading branch information
lazywithclass authored and dougwilson committed Feb 11, 2016
1 parent d4a7bcc commit 1ef9c7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ encoding of the request. The parsing can be aborted by throwing an error.

The middlewares provided by this module create errors depending on the error
condition during parsing. The errors will typically have a `status` property
that contains the suggested HTTP response code.
that contains the suggested HTTP response code and a `body` property containing
the read body, if available.

The following are the common errors emitted, though any error can come through
for various reasons.
Expand Down

0 comments on commit 1ef9c7f

Please sign in to comment.