fix for 404 redirect issue in rpc error interceptor