Throw exception on http request fail