Fix error message when api is down