All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pro.chenggang.plugin.springcloud.gateway.option.SystemResponseInfo Maven / Gradle / Ivy

There is a newer version: 2.1.SR2.2.RELEASE
Show newest version
package pro.chenggang.plugin.springcloud.gateway.option;

/**
 * System Response Info
 * @author chenggang
 * @date 2019/01/29
 */
public enum SystemResponseInfo implements ResponseInfo {

    /**
     * Service Error
     */
    SERVICE_NOT_AVAILABLE("404","service-error"),
    /**
     * Gateway Internal Error
     */
    GATEWAY_ERROR("500","gateway-error"),
    ;

    private String code;
    private String msg;

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


    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy