Raise exception on non 200 status code