001    /*
002     * ftp4j - A pure Java FTP client library
003     * 
004     * Copyright (C) 2008 Carlo Pelliccia (www.sauronsoftware.it)
005     * 
006     * This program is free software: you can redistribute it and/or modify
007     * it under the terms of the GNU General Public License as published by
008     * the Free Software Foundation, either version 3 of the License, or
009     * (at your option) any later version.
010     *
011     * This program is distributed in the hope that it will be useful,
012     * but WITHOUT ANY WARRANTY; without even the implied warranty of
013     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014     * GNU General Public License for more details.
015     *
016     * You should have received a copy of the GNU General Public License
017     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
018     */
019    package it.sauronsoftware.ftp4j;
020    
021    /**
022     * This interface is a constants container, each one representing a common FTP
023     * response code.
024     * 
025     * @author Carlo Pelliccia
026     */
027    public interface FTPCodes {
028    
029            public int SYNTAX_ERROR = 500;
030    
031            public int SYNTAX_ERROR_IN_PARAMETERS = 501;
032    
033            public int COMMAND_NOT_IMPLEMENTED = 503;
034    
035            public int COMMAND_PARAMETER_NOT_IMPLEMENTED = 504;
036    
037            public int NOT_LOGGED_IN = 530;
038    
039            public int FILE_NOT_FOUND = 550;
040    
041            public int PAGE_TYPE_UNKNOWN = 551;
042    
043            public int EXCEEDED_STORAGE_ALLOCATION = 552;
044    
045            public int FILE_NAME_NOT_ALLOWED = 553;
046    
047            public int SERVICE_NOT_AVAILABLE = 421;
048    
049            public int CANNOT_OPEN_DATA_CONNECTION = 425;
050    
051            public int CONNECTION_CLOSED = 426;
052    
053            public int FILE_ACTION_NOT_TAKEN = 450;
054    
055            public int LOCAL_ERROR_IN_PROCESSING = 451;
056    
057            public int FILE_UNAVAILABLE = 452;
058    
059            public int USERNAME_OK = 331;
060    
061            public int NEED_ACCOUNT = 332;
062    
063            public int PENDING_FURTHER_INFORMATION = 350;
064    
065            public int COMMAND_OK = 200;
066    
067            public int SUPERFLOUS_COMMAND = 202;
068    
069            public int STATUS_MESSAGE = 211;
070    
071            public int DIRECTORY_STATUS = 212;
072    
073            public int FILE_STATUS = 213;
074    
075            public int HELP_MESSAGE = 214;
076    
077            public int NAME_SYSTEM_TIME = 215;
078    
079            public int SERVICE_READY_FOR_NEW_USER = 220;
080    
081            public int SERVICE_CLOSING_CONTROL_CONNECTION = 221;
082    
083            public int DATA_CONNECTION_OPEN = 225;
084    
085            public int DATA_CONNECTION_CLOSING = 226;
086    
087            public int ENTER_PASSIVE_MODE = 227;
088    
089            public int USER_LOGGED_IN = 230;
090    
091            public int FILE_ACTION_COMPLETED = 250;
092    
093            public int PATHNAME_CREATED = 257;
094    
095            public int RESTART_MARKER = 110;
096    
097            public int SERVICE_NOT_READY = 120;
098    
099            public int DATA_CONNECTION_ALREADY_OPEN = 125;
100    
101            public int FILE_STATUS_OK = 150;
102    
103    }