ResponseStatus.java 655 字节
Newer Older
智布道's avatar
智布道 已提交
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
package me.zhyd.oauth.request;

/**
 * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
 * @version 1.0
 * @website https://www.zhyd.me
 * @date 2019/1/31 16:37
 * @since 1.8
 */
public enum ResponseStatus {
    FAILURE(5000, "Authentication failure"),
    NOT_IMPLEMENTED(5001, "Not Implemented"),
    UNSUPPORTED(5002, "Unsupported authentication, please check the configuration."),
    ;

    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;
    }
}