Lines Matching defs:code
392 // Debug code for testing EAS 14.0; disables support for EAS 14.1
479 int code = resp.getStatus();
480 userLog("Validation (OPTIONS) response: " + code);
481 if (code == HttpStatus.SC_OK) {
512 code = resp.getStatus();
514 if (EasResponse.isProvisionError(code)) {
516 } else if (code == HttpStatus.SC_NOT_FOUND) {
519 } else if (code == HttpStatus.SC_UNAUTHORIZED) {
523 } else if (code != HttpStatus.SC_OK) {
525 userLog("Unexpected response for FolderSync: ", code);
539 } else if (EasResponse.isAuthError(code)) {
544 } else if (code == INTERNAL_SERVER_ERROR_CODE) {
549 // TODO Need to catch other kinds of errors (e.g. policy) For now, report code.
550 userLog("Validation failed, reporting I/O error: ", code);
559 // Set the proper result code and save the PolicySet in our Bundle
571 // If not, set the proper code (the account will not be created)
638 * @throws IOException on any IOException within the HttpClient code
645 int code = resp.getStatus();
647 if (code == AUTO_DISCOVER_REDIRECT_CODE) {
654 } else if (code == HttpStatus.SC_UNAUTHORIZED) {
668 } else if (code != HttpStatus.SC_OK) {
670 userLog("Code: " + code + ", throwing IOException");
746 // Get the "final" code; if it's not 200, just return null
747 int code = resp.getStatus();
748 userLog("Code: " + code);
749 if (code != HttpStatus.SC_OK) return null;
947 int code = resp.getStatus();
948 if (code == HttpStatus.SC_OK) {
959 svc.userLog("GAL lookup returned " + code);
1112 userLog("Move items request failed, code: " + status);
1123 * @param req the request (message id and response code)
1159 userLog("Meeting response request failed, code: " + status);
1210 // account), send "0". The server will respond with code 449 if there are policies
1343 // This code should be removed when the underlying issue is resolved
1495 int code = resp.getStatus();
1496 if (code == HttpStatus.SC_OK) {
1569 int code = resp.getStatus();
1570 if (code == HttpStatus.SC_OK) {
1599 int code = resp.getStatus();
1600 if (code == HttpStatus.SC_OK) {
1613 * Translate exit status code to service status code (used in callbacks)
1676 int code = resp.getStatus();
1677 userLog("OPTIONS response: ", code);
1678 if (code == HttpStatus.SC_OK) {
1736 int code = resp.getStatus();
1737 if (code == HttpStatus.SC_OK) {
1745 } else if (EasResponse.isProvisionError(code)) {
1747 } else if (EasResponse.isAuthError(code)) {
1751 userLog("FolderSync response error: ", code);
2024 int code = resp.getStatus();
2025 userLog("Ping response: ", code);
2039 if (code == HttpStatus.SC_OK) {
2066 } else if (EasResponse.isAuthError(code)) {
2068 userLog("Authorization error during Ping: ", code);
2186 * This behavior is seemingly random, and therefore we must code defensively
2234 * Common code to sync E+PIM data
2332 int code = resp.getStatus();
2333 if (code == HttpStatus.SC_OK) {
2410 userLog("Sync response error: ", code);
2411 if (EasResponse.isProvisionError(code)) {
2413 } else if (EasResponse.isAuthError(code)) {