code: protected final R parseResponse(HttpResponse response, BaasBox box) throws BaasException {
          final int status = response.getStatusCode();
          final int statusClass = status / 100;
          try {
              switch (statusClass) {
                  case 1:
                      return onContinue(status, response, box);
                  case 2:
                      return onOk(status, response, box);
                  case 3:
                      return onRedirect(status, response, box);
                  case 4:
                      return onClientError(status, response, box);
                  case 5:
                      return onServerError(status, response, box);
                  default:
                      throw new BaasIOException("unexpected status code returned from server: " + status);
              }
          } catch (BaasInvalidSessionException e) {
              if (retryOnFailedLogin) {
                  retryOnFailedLogin = false;
                  if (attemptRefreshToken(box)) {
                      return asyncCall();
                  } else {
                      throw e;
                  }
              } else {
                  throw e;
              }
          }
      }
docs: -------------------------- OTHER METHODS --------------------------