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