From 16b5718954d88fbefe17f0b91101d742b63209c7 Mon Sep 17 00:00:00 2001 From: hexaez <45806662+hexaez@users.noreply.github.com> Date: Wed, 22 Apr 2020 21:59:26 +0800 Subject: [PATCH] Update README.md about validateStatus (#2912) Rewrote the comment from "Reject only if the status code is greater than or equal to 500" to "Resolve only if the status code is less than 500" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 279cd21..96c8331 100755 --- a/README.md +++ b/README.md @@ -578,7 +578,7 @@ Using the `validateStatus` config option, you can define HTTP code(s) that shoul ```js axios.get('/user/12345', { validateStatus: function (status) { - return status < 500; // Reject only if the status code is greater than or equal to 500 + return status < 500; // Resolve only if the status code is less than 500 } }) ```