Display error message if http request failed