added exception handling if a 200 is not returned