Responds with the correct 502 status code if CC is unavailable

[#74545650]