axios.interceptors.response.use(response => { return response; }, error => { if (error.response.status === 401) { //place your reentry code } return error; });