ResponseCode.java 638 Bytes
package com.bsth.common;

/**
 * 
 * @ClassName: ResponseCode
 * @Description: TODO(响应状态码)
 * @author PanZhao
 * @date 2016年3月18日 下午11:12:08
 *
 */
public enum ResponseCode {

	SUCCESS("$$$$$${txt-3324}", 200),
	NO_PERMISSION("无资源访问权限", 403), 
	NO_AUTHENTICATION("客户端未授权", 407), 
	ERROR("服务器异常", 500);

	private String text;
	private int code;

	ResponseCode(String text, int code) {
		this.text = text;
		this.code = code;
	}

	@Override
	public String toString() {
		return this.code + "";
	}

	public String getText() {
		return this.text;
	}
}