code: @Override
      public void checkRepositoryStatus() throws IOException, RequestFailureException {
          HttpURLConnection connection = createHeadConnection("/assets");
          testResponseCode(connection);
          Map<String, List<String>> results = connection.getHeaderFields();
          if (results == null) {
              throw new RequestFailureException(connection.getResponseCode(), "No header returned, this does not look like a valid repository", connection.getURL(), null);
          }
          List<String> count = results.get("count");
          if (count == null) {
              throw new RequestFailureException(connection.getResponseCode(), "No count returned, this does not look like a valid repository", connection.getURL(), null);
          }
      }
docs: Checks the repository availability
  
  @return This will return void if all is ok but will throw an exception if
  there are any problems
  @throws RequestFailureException If the response code is not OK or the headers returned are missing
  the count field (which can happen if we hit a URL that returns 200 but is not a valid repository).
  @throws IOException             If there is a problem with the URL