Fixed gateway not returning error api response after refreshing auth token
[#58471740]