1 /* 2 * Copyright 2007 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.mockftpserver.core.command; 17 18 /** 19 * Reply Code constants. 20 * 21 * @author Chris Mair 22 * @version $Revision$ - $Date$ 23 */ 24 public final class ReplyCodes { 25 26 public static final int ABOR_OK = 226; 27 public static final int ACCT_OK = 230; 28 public static final int ALLO_OK = 200; 29 public static final int CDUP_OK = 200; 30 public static final int CWD_OK = 250; 31 public static final int DELE_OK = 250; 32 public static final int EPRT_OK = 200; 33 public static final int EPSV_OK = 229; 34 public static final int HELP_OK = 214; 35 public static final int MKD_OK = 257; 36 public static final int MODE_OK = 200; 37 public static final int NOOP_OK = 200; 38 public static final int PASS_OK = 230; 39 public static final int PASS_NEED_ACCOUNT = 332; 40 public static final int PASS_LOG_IN_FAILED = 530; 41 public static final int PASV_OK = 227; 42 public static final int PORT_OK = 200; 43 public static final int PWD_OK = 257; 44 public static final int QUIT_OK = 221; 45 public static final int REIN_OK = 220; 46 public static final int REST_OK = 350; 47 public static final int RMD_OK = 250; 48 public static final int RNFR_OK = 350; 49 public static final int RNTO_OK = 250; 50 public static final int SITE_OK = 200; 51 public static final int SMNT_OK = 250; 52 public static final int STAT_SYSTEM_OK = 211; 53 public static final int STAT_FILE_OK = 213; 54 public static final int STRU_OK = 200; 55 public static final int SYST_OK = 215; 56 public static final int TYPE_OK = 200; 57 public static final int USER_LOGGED_IN_OK = 230; 58 public static final int USER_NEED_PASSWORD_OK = 331; 59 public static final int USER_NO_SUCH_USER = 530; 60 public static final int USER_ACCOUNT_NOT_VALID = 530; 61 62 public static final int TRANSFER_DATA_INITIAL_OK = 150; 63 public static final int TRANSFER_DATA_FINAL_OK = 226; 64 65 public static final int CONNECT_OK = 220; 66 67 // GENERIC 68 public static final int SYSTEM_ERROR = 451; 69 public static final int COMMAND_SYNTAX_ERROR = 501; 70 public static final int COMMAND_NOT_SUPPORTED = 502; 71 public static final int ILLEGAL_STATE = 503; // Bad sequence 72 public static final int NOT_LOGGED_IN = 530; 73 public static final int READ_FILE_ERROR = 550; 74 public static final int WRITE_FILE_ERROR = 553; 75 public static final int FILENAME_NOT_VALID = 553; 76 77 /** 78 * Private constructor. This class should not be instantiated. 79 */ 80 private ReplyCodes() { 81 } 82 83 } 84