001/*
002 *    Copyright 2024-2025, Warm-Flow (290631660@qq.com).
003 *
004 *    Licensed under the Apache License, Version 2.0 (the "License");
005 *    you may not use this file except in compliance with the License.
006 *    You may obtain a copy of the License at
007 *
008 *       https://www.apache.org/licenses/LICENSE-2.0
009 *
010 *    Unless required by applicable law or agreed to in writing, software
011 *    distributed under the License is distributed on an "AS IS" BASIS,
012 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 *    See the License for the specific language governing permissions and
014 *    limitations under the License.
015 */
016package org.dromara.warm.flow.core.utils;
017
018/**
019 * 返回状态码
020 *
021 * @author warm
022 */
023public class HttpStatus {
024    /**
025     * 操作成功
026     */
027    public static final int SUCCESS = 200;
028
029    /**
030     * 对象创建成功
031     */
032    public static final int CREATED = 201;
033
034    /**
035     * 请求已经被接受
036     */
037    public static final int ACCEPTED = 202;
038
039    /**
040     * 操作已经执行成功,但是没有返回数据
041     */
042    public static final int NO_CONTENT = 204;
043
044    /**
045     * 资源已被移除
046     */
047    public static final int MOVED_PERM = 301;
048
049    /**
050     * 重定向
051     */
052    public static final int SEE_OTHER = 303;
053
054    /**
055     * 资源没有被修改
056     */
057    public static final int NOT_MODIFIED = 304;
058
059    /**
060     * 参数列表错误(缺少,格式不匹配)
061     */
062    public static final int BAD_REQUEST = 400;
063
064    /**
065     * 未授权
066     */
067    public static final int UNAUTHORIZED = 401;
068
069    /**
070     * 访问受限,授权过期
071     */
072    public static final int FORBIDDEN = 403;
073
074    /**
075     * 资源,服务未找到
076     */
077    public static final int NOT_FOUND = 404;
078
079    /**
080     * 不允许的http方法
081     */
082    public static final int BAD_METHOD = 405;
083
084    /**
085     * 资源冲突,或者资源被锁
086     */
087    public static final int CONFLICT = 409;
088
089    /**
090     * 不支持的数据,媒体类型
091     */
092    public static final int UNSUPPORTED_TYPE = 415;
093
094    /**
095     * 系统内部错误
096     */
097    public static final int ERROR = 500;
098
099    /**
100     * 接口未实现
101     */
102    public static final int NOT_IMPLEMENTED = 501;
103
104    /**
105     * 系统警告消息
106     */
107    public static final int WARN = 601;
108}