package org.hzhub.erp.common.core;

/**
 * HTTP状态码常量
 */
public final class HttpStatus {

    private HttpStatus() {}

    /**
     * 操作成功
     */
    public static final int SUCCESS = 200;

    /**
     * 对象创建成功
     */
    public static final int CREATED = 201;

    /**
     * 请求已经被接受
     */
    public static final int ACCEPTED = 202;

    /**
     * 操作已经执行成功，但是没有返回数据
     */
    public static final int NO_CONTENT = 204;

    /**
     * 资源未找到
     */
    public static final int NOT_FOUND = 404;

    /**
     * 请求方法未允许
     */
    public static final int METHOD_NOT_ALLOWED = 405;

    /**
     * 业务异常
     */
    public static final int WARN = 601;

    /**
     * 操作失败
     */
    public static final int ERROR = 500;
}
