Add check that http response code is 200; if not, display error message