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); });