Lines Matching refs:code
367 // Debug code for testing EAS 14.0; disables support for EAS 14.1
474 int code = resp.getStatus();
475 userLog("Validation (OPTIONS) response: " + code);
476 if (code == HttpStatus.SC_OK) {
507 code = resp.getStatus();
509 if (code == HttpStatus.SC_FORBIDDEN) {
516 } else if (code == HttpStatus.SC_NOT_FOUND) {
519 } else if (code == HttpStatus.SC_UNAUTHORIZED) {
523 } else if (code != HttpStatus.SC_OK) {
524 if ((code == EAS_REDIRECT_CODE) && (mRedirectCount++ < MAX_REDIRECTS) &&
529 userLog("Unexpected response for FolderSync: ", code);
548 } else if (code == INTERNAL_SERVER_ERROR_CODE) {
553 if ((code == EAS_REDIRECT_CODE) && (mRedirectCount++ < MAX_REDIRECTS) &&
557 // TODO Need to catch other kinds of errors (e.g. policy) For now, report code.
558 userLog("Validation failed, reporting I/O error: ", code);
567 // Set the proper result code and save the PolicySet in our Bundle
579 // If not, set the proper code (the account will not be created)
646 * @throws IOException on any IOException within the HttpClient code
653 int code = resp.getStatus();
655 if (code == EAS_REDIRECT_CODE) {
662 } else if (code == HttpStatus.SC_UNAUTHORIZED) {
676 } else if (code != HttpStatus.SC_OK) {
678 userLog("Code: " + code + ", throwing IOException");
767 // Get the "final" code; if it's not 200, just return null
768 int code = resp.getStatus();
769 userLog("Code: " + code);
770 if (code != HttpStatus.SC_OK) return null;
965 int code = resp.getStatus();
966 if (code == HttpStatus.SC_OK) {
977 svc.userLog("GAL lookup returned " + code);
1130 userLog("Move items request failed, code: " + status);
1141 * @param req the request (message id and response code)
1177 userLog("Meeting response request failed, code: " + status);
1228 // account), send "0". The server will respond with code 449 if there are policies
1356 // This code should be removed when the underlying issue is resolved
1498 int code = resp.getStatus();
1499 if (code == HttpStatus.SC_OK) {
1573 int code = resp.getStatus();
1574 if (code == HttpStatus.SC_OK) {
1604 int code = resp.getStatus();
1605 if (code == HttpStatus.SC_OK) {
1618 * Common code to sync E+PIM data
1715 int code = resp.getStatus();
1716 if (code == HttpStatus.SC_OK) {
1795 userLog("Sync response error: ", code);