From f859938a8596e7cd695a7e8eab7aa6574a888c79 Mon Sep 17 00:00:00 2001 From: zuies Date: Wed, 13 Dec 2023 19:01:25 +0300 Subject: [PATCH] add axios case for error --- src/axiosInstance.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/axiosInstance.ts b/src/axiosInstance.ts index 4b118797..576b9f92 100644 --- a/src/axiosInstance.ts +++ b/src/axiosInstance.ts @@ -154,6 +154,9 @@ axiosInstance.interceptors.response.use( `API responded with status code ${error.response.status}: ${error.response.data.message}` ) ); + + case 405: + console.log(error.response.data.message); break; case 440: StorageService.removeLocalStorage('user');