private void checkServerResponseCode(HttpURLConnection urlConnection) throws RequestFailureException {
  try {
    if (urlConnection.getResponseCode() != 200) {
      throw new RequestFailureException("Received " + urlConnection.getResponseCode() + " code instead of 200 (OK) from the server.  Aborting.");
    }
  }
 catch (  IOException e) {
    throw new RequestFailureException("Failed to read response code from server: ",e);
  }
}

private void checkServerResponseCode ( HttpURLConnection urlConnection ) throws RequestFailureException { try { if ( urlConnection . getResponseCode ( ) != 200 ) { throw new RequestFailureException ( "Received " + urlConnection . getResponseCode ( ) + " code instead of 200 (OK) from the server.  Aborting." ) ; } } catch ( IOException e ) { throw new RequestFailureException ( "Failed to read response code from server: " , e ) ; } }
confirms that the omaha server sent back an " ok " code .
