Browse Source

add note about statusCode and statusMessage

v5.x
Vsevolod Strukchinsky 9 years ago
parent
commit
826d423153
  1. 2
      readme.md

2
readme.md

@ -180,7 +180,7 @@ Sets `options.method` to the method name and makes a request.
## Errors
Each error contains (if available) `host`, `hostname`, `method` and `path` properties to make debugging easier.
Each error contains (if available) `statusCode`, `statusMessage`, `host`, `hostname`, `method` and `path` properties to make debugging easier.
In Promise mode, the `response` is attached to the error.

Loading…
Cancel
Save