package com.ejweb.conf;

/**
 * 错误码前缀说明 20 - 服务器成功返回 40 - 一般性错误 50 - 服务不可用，系统错误 STATUS
 * 
 * @team IT Team
 * @author renmb
 * @version 1.0
 * @time  2016年8月28日
 */
public class ErrorCode {
    /* 成功 */
    public static final String STATUS_CODE_2000 = "2000";// 成功
    public static final String STATUS_CODE_2001 = "2001";// 结果为空（主要正对于列表）
    
    /* 数据错误表 */
    public static final String STATUS_CODE_4001 = "4001";// 请求数据校验错误
    public static final String STATUS_CODE_4002 = "4002";// 请求数据不存在
    public static final String STATUS_CODE_4003 = "4003";// 数据签名未通过
    public static final String STATUS_CODE_4004 = "4004";// 运行时错误，即代码发生异常

    /* 用户模块（41开头） */
    public static final String STATUS_CODE_4101 = "4101";// 禁止登陆
    public static final String STATUS_CODE_4102 = "4102";// 用户不存在
    public static final String STATUS_CODE_4103 = "4103";// 密码错误
    public static final String STATUS_CODE_4104 = "4104";// 校验码错误
    public static final String STATUS_CODE_4105 = "4105";// 校验码已失效
    public static final String STATUS_CODE_4106 = "4106";// 需要重新登录

    /*文件上传模块*/
    public static final String NO_FILE_UPLOADED = "6001";
    public static final String NO_FILE_FOUND_DESC = "no file found";
    public static final String WRITE_FILE_FAIL = "6002";
    public static final String WRITE_FILE_FAIL_DESC = "fail to write file on disk";

    /**数据库**/
    public static final String  SQL_ERROR= "5001";


    /*举报*/
    public static final String  CAPTCHA_ERROR = "5007";
    public static final String  CAPTCHA_ERROR_DESC = "captcha is incorrect";
}
