raise an exception if the server didn't return 200