ResponseStatus.java 800 字节
Newer Older
智布道's avatar
智布道 已提交
1 2 3 4 5 6 7 8
package me.zhyd.oauth.request;

/**
 * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
 * @version 1.0
 * @since 1.8
 */
public enum ResponseStatus {
9
    SUCCESS(2000, "Success"),
智布道's avatar
智布道 已提交
10
    FAILURE(5000, "Failure"),
智布道's avatar
智布道 已提交
11
    NOT_IMPLEMENTED(5001, "Not Implemented"),
智布道's avatar
智布道 已提交
12 13
    PARAMETER_INCOMPLETE(5002, "Parameter incomplete"),
    UNSUPPORTED(5003, "Unsupported operation"),
14 15
    NO_AUTH_SOURCE(5004, "AuthSource cannot be null"),
    UNIDENTIFIED_PLATFORM(5005, "Unidentified platform"),
16
    ILLEGAL_REDIRECT_URI(5006, "Illegal redirect uri"),
智布道's avatar
智布道 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
    ;

    private int code;
    private String msg;

    ResponseStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}