result = 10002;
result = 1002;
   public int getCode()   {      int result = 0;      switch(this)      {         case INFO_CONTINUE:            result = 100;            break;         case INFO_SWITCHING_PROTOCOL:            result = 101;            break;         case INFO_PROCESSING:            result = 102;            break;         case SUCCESS_OK:            result = 200;            break;         case SUCCESS_CREATED:            result = 201;            break;         case SUCCESS_ACCEPTED:            result = 202;            break;         case SUCCESS_NON_AUTHORITATIVE:            result = 203;            break;         case SUCCESS_NO_CONTENT:            result = 204;            break;         case SUCCESS_RESET_CONTENT:            result = 205;            break;         case SUCCESS_PARTIAL_CONTENT:            result = 206;            break;         case SUCCESS_MULTI_STATUS:            result = 207;            break;         case REDIRECTION_MULTIPLE_CHOICES:            result = 300;            break;         case REDIRECTION_MOVED_PERMANENTLY:            result = 301;            break;         case REDIRECTION_FOUND:            result = 302;            break;         case REDIRECTION_SEE_OTHER:            result = 303;            break;         case REDIRECTION_NOT_MODIFIED:            result = 304;            break;         case REDIRECTION_USE_PROXY:            result = 305;            break;         case REDIRECTION_MOVED_TEMPORARILY:            result = 307;            break;         case CLIENT_ERROR_BAD_REQUEST:            result = 400;            break;         case CLIENT_ERROR_UNAUTHORIZED:            result = 401;            break;         case CLIENT_ERROR_PAYMENT_REQUIRED:            result = 402;            break;         case CLIENT_ERROR_FORBIDDEN:            result = 403;            break;         case CLIENT_ERROR_NOT_FOUND:            result = 404;            break;         case CLIENT_ERROR_METHOD_NOT_ALLOWED:            result = 405;            break;         case CLIENT_ERROR_NOT_ACCEPTABLE:            result = 406;            break;         case CLIENT_ERROR_PROXY_AUTHENTIFICATION_REQUIRED:            result = 407;            break;         case CLIENT_ERROR_REQUEST_TIMEOUT:            result = 408;            break;         case CLIENT_ERROR_CONFLICT:            result = 409;            break;         case CLIENT_ERROR_GONE:            result = 410;            break;         case CLIENT_ERROR_LENGTH_REQUIRED:            result = 411;            break;         case CLIENT_ERROR_PRECONDITION_FAILED:            result = 412;            break;         case CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE:            result = 413;            break;         case CLIENT_ERROR_REQUEST_URI_TOO_LONG:            result = 414;            break;         case CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE:            result = 415;            break;         case CLIENT_ERROR_REQUESTED_RANGE_NOT_SATISFIABLE:            result = 416;            break;         case CLIENT_ERROR_EXPECTATION_FAILED:            result = 417;            break;         case CLIENT_ERROR_UNPROCESSABLE_ENTITY:            result = 422;            break;         case CLIENT_ERROR_LOCKED:            result = 423;            break;         case CLIENT_ERROR_FAILED_DEPENDENCY:            result = 424;            break;         case SERVER_ERROR_INTERNAL:            result = 500;            break;         case SERVER_ERROR_NOT_IMPLEMENTED:            result = 501;            break;         case SERVER_ERROR_BAD_GATEWAY:            result = 502;            break;         case SERVER_ERROR_SERVICE_UNAVAILABLE:            result = 503;            break;         case SERVER_ERROR_GATEWAY_TIMEOUT:            result = 504;            break;         case SERVER_ERROR_VERSION_NOT_SUPPORTED:            result = 505;            break;         case SERVER_ERROR_INSUFFICIENT_STORAGE:            result = 507;            break;                     case CONNECTOR_ERROR_CONNECTION:         	result = 10000;         	break;         case CONNECTOR_ERROR_COMMUNICATION:         	result = 10001;         	break;         case CONNECTOR_ERROR_INTERNAL:         	result = 10002;         	break;      }      return result;   }