From db7f0a00d82aae5841b5557903f3b19f95313806 Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Thu, 3 Mar 2016 12:31:02 +0500 Subject: [PATCH] note about statusCode/statusMessage props in error --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f0d5bffa6..d2ed519e7 100644 --- a/readme.md +++ b/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.