class ApiErrorExtractor {

  public boolean clientError(IOException e) {
    GoogleJsonResponseException jsonException = getJsonResponseException(e);
    return jsonException != null && getHttpStatusCode(jsonException) / 100 == 4;
  }

}