using System;
using System.Collections.Generic;
using System.Text;
namespace TEAMModelOS
{
///
/// 响应编码
///
public static class ResponseCode
{
///
/// 代表HTTP正常请求
///
public readonly static int HTTP_SUCCESS = 200;
///
/// 一般常用代表成功
///
public readonly static int SUCCESS = 0;
///
/// 一般常用代表失败
///
public readonly static int FAILED = 1;
///
/// 数据为空或null
///
public readonly static int DATA_EMPTY_NULL = 2;
///
/// 参数异常
///
public readonly static int PARAMS_ERROR = 3;
///
/// 数据已存在
///
public readonly static int DATA_EXIST = 4;
///
/// 服务端异常
///
public readonly static int SERVER_ERROR = 500;
///
/// 未知异常
///
public readonly static int UNDEFINED = 9;
///
/// 资源未找到
///
public readonly static int NOT_FOUND = 404;
///
/// 未授权
///
public readonly static int UNAUTH = 401;
///
/// 网关路由异常
///
public readonly static int GATEWAY_ERROR = 504;
///
/// 响应超时
///
public readonly static int TIMEOUT_ERROR = 503;
#region 返回状态码
///
/// 成功 200
///
public readonly static int _200Ok = 200;
///
/// 部分创建成功 201
///
public readonly static int _201Created = 201;
///
/// 已接受请求,处理未完成 202
///
public readonly static int _202Accepted = 202;
///
/// 非授权信息 203
///
public readonly static int _203NonUnauthorizedInfo = 203;
///
/// 服务器成功处理了请求,但没有返回任何内容。 204
///
public readonly static int _204NoContent = 204;
///
/// 参数错误 400
///
public readonly static int _400ParamsError = 400;
///
/// 未授权 请求要求身份验证 401
///
public readonly static int _401Unauthorized = 401;
///
/// 需要付费 402
///
public readonly static int _402PaymentRequired = 402;
///
/// 服务器拒绝/禁用 403
///
public readonly static int _403Forbidden = 403;
///
/// 密码错误
///
public readonly static int _40301ForbiddenPwd = 40301;
///
/// 未找到 404
///
public readonly static int _404NotFound = 404;
///
/// 方法不可用 405
///
public readonly static int _405NotAllow = 405;
///
/// 请求超时 408
///
public readonly static int _408RespondTimeOut = 408;
///
/// 已存在 409
///
public readonly static int _409Conflict = 409;
///
/// 过期 410
///
public readonly static int _410Gone = 410;
///
/// 异常 411
///
public readonly static int _411Abnormal = 411;
///
/// 不支持的媒体类型 415
///
public readonly static int _415NoMediaType = 415;
///
/// 创建失败
///
public readonly static int _417CreateFailed = 417;
///
/// 服务器错误 500
///
public readonly static int _500Error = 500;
///
/// 服务器拒绝
///
public readonly static int _501Refuse = 501;
///
/// 网关错误 502
///
public readonly static int _502GatewayError = 502;
///
/// 网关超时 504
///
public readonly static int _504GatewayTimeOut = 504;
///
/// 存储不足 507
///
public readonly static int _507InsufficientStorage = 507;
#endregion
}
}