From 08719e0341c41524e55c37141fb8a30c541874ca Mon Sep 17 00:00:00 2001 From: Sagar Acharya Date: Fri, 13 Sep 2019 07:15:36 +0545 Subject: [PATCH] Update response interceptor docs (#2399) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3c7d721f28..5bac444e71 100755 --- a/README.md +++ b/README.md @@ -492,9 +492,11 @@ axios.interceptors.request.use(function (config) { // Add a response interceptor axios.interceptors.response.use(function (response) { + // Any status code that lie within the range of 2xx cause this function to trigger // Do something with response data return response; }, function (error) { + // Any status codes that falls outside the range of 2xx cause this function to trigger // Do something with response error return Promise.reject(error); });