The status code of a response is a number, not a string. Now it's handled appropriately.
The axios.interceptors.request.use callback is not actually for GET requests (as written before), but for intercepting the actual HTTP requests. Same goes for the axios.interceptors.response.use callback. It's not for POST requests (as written before), but for intercepting the actual responses. The interceptor config for the requests was removed. We don't need it at the moment.
Display the request URL for the 302 and 502 statuses.
Dispatch the logout action when a response with a status code of 401 is intercepted.
Don't intercept the 500 statuses and actually reject the promise as a default scenario for the errors.