docs: public Class<? extends WebDriverException> getExceptionType(int statusCode) {
      if (SUCCESS == statusCode) {
        return null;
      }
  
      // We know that the tuple of (status code, exception) is distinct.
      Set<Class<? extends WebDriverException>> allPossibleExceptions = KNOWN_ERRORS.stream()
        .filter(knownError -> knownError.getJsonCode() == statusCode)
        .map(KnownError::getException)
        .collect(Collectors.toSet());
  
      return Iterables.getOnlyElement(allPossibleExceptions, WebDriverException.class);
    }