code: public void assertCorrectResonse(JSONObject response) throws JSONException {
  		Integer lastHTTPResponseCode = getLastHTTPResponseCode();
  		if(lastHTTPResponseCode != null) {
  			//if a response code is set, check it. Selenium requests do not let you query this which is why we can't check this in case of a selenium API call
  			assertEquals("The https response code should be 200 (OK)", new Integer(HttpURLConnection.HTTP_OK), lastHTTPResponseCode);
  		}
  		assertNotNull("The request should result in a response", response);	
  	}
docs: assert that the {@link JSONObject} response is not null and does not hold any error messages
  @param response
  @throws JSONException