Browse Source

note about statusCode/statusMessage props in error

node-7
Vsevolod Strukchinsky 9 years ago
parent
commit
db7f0a00d8
  1. 2
      readme.md

2
readme.md

@ -164,7 +164,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