summaryrefslogtreecommitdiff
path: root/tags/2.1/src/main/java/org/mockftpserver/core/command/ReplyCodes.java
blob: 98c8b626507a0d8110c84ce2e4e7c1a403321f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
 * Copyright 2007 the original author or authors.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.mockftpserver.core.command;

/**
 * Reply Code constants.
 *
 * @author Chris Mair
 * @version $Revision$ - $Date$
 */
public final class ReplyCodes {

    public static final int ABOR_OK = 226;
    public static final int ACCT_OK = 230;
    public static final int ALLO_OK = 200;
    public static final int CDUP_OK = 200;
    public static final int CWD_OK = 250;
    public static final int DELE_OK = 250;
    public static final int EPRT_OK = 200;
    public static final int EPSV_OK = 229;
    public static final int HELP_OK = 214;
    public static final int MKD_OK = 257;
    public static final int MODE_OK = 200;
    public static final int NOOP_OK = 200;
    public static final int PASS_OK = 230;
    public static final int PASS_NEED_ACCOUNT = 332;
    public static final int PASS_LOG_IN_FAILED = 530;
    public static final int PASV_OK = 227;
    public static final int PORT_OK = 200;
    public static final int PWD_OK = 257;
    public static final int QUIT_OK = 221;
    public static final int REIN_OK = 220;
    public static final int REST_OK = 350;
    public static final int RMD_OK = 250;
    public static final int RNFR_OK = 350;
    public static final int RNTO_OK = 250;
    public static final int SITE_OK = 200;
    public static final int SMNT_OK = 250;
    public static final int STAT_SYSTEM_OK = 211;
    public static final int STAT_FILE_OK = 213;
    public static final int STRU_OK = 200;
    public static final int SYST_OK = 215;
    public static final int TYPE_OK = 200;
    public static final int USER_LOGGED_IN_OK = 230;
    public static final int USER_NEED_PASSWORD_OK = 331;
    public static final int USER_NO_SUCH_USER = 530;
    public static final int USER_ACCOUNT_NOT_VALID = 530;

    public static final int TRANSFER_DATA_INITIAL_OK = 150;
    public static final int TRANSFER_DATA_FINAL_OK = 226;

    public static final int CONNECT_OK = 220;

    // GENERIC
    public static final int SYSTEM_ERROR = 451;
    public static final int COMMAND_SYNTAX_ERROR = 501;
    public static final int COMMAND_NOT_SUPPORTED = 502;
    public static final int ILLEGAL_STATE = 503;       // Bad sequence
    public static final int NOT_LOGGED_IN = 530;
    public static final int READ_FILE_ERROR = 550;
    public static final int WRITE_FILE_ERROR = 553;
    public static final int FILENAME_NOT_VALID = 553;

    /**
     * Private constructor. This class should not be instantiated.
     */
    private ReplyCodes() {
    }

}