public static int getErrorFromResponse(NetResponse resp) { if (resp.isUnathorized()) { return(ERR_UNATHORIZED); } if (!resp.isOK()) { return(ERR_REMOTESERVER); } return(ERR_NONE); }