using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TEAMModelOS.SDK.Context.Constant { /// /// 响应编码 /// public static class RespondCode { /// /// 成功 200 /// public readonly static int Ok = 200; /// /// 部分创建成功 201 /// public readonly static int Created = 201; /// /// 已接受请求,处理未完成 202 /// public readonly static int Accepted = 202; /// /// 非授权信息 203 /// public readonly static int NonUnauthorizedInfo = 203; /// /// 参数错误 400 /// public readonly static int ParamsError = 400; /// /// 未授权 请求要求身份验证 401 /// public readonly static int Unauthorized = 401; /// /// 需要付费 402 /// public readonly static int PaymentRequired = 402; /// /// 服务器拒绝/禁用 403 /// public readonly static int Forbidden = 403; /// /// 密码错误 /// public readonly static int ForbiddenPwd = 40301; /// /// 未找到 404 /// public readonly static int NotFound = 404; /// /// 方法不可用 405 /// public readonly static int NotAllow = 405; /// /// 请求超时 408 /// public readonly static int RespondTimeOut = 408; /// /// 已存在 409 /// public readonly static int Conflict = 409; /// /// 过期 410 /// public readonly static int Gone = 410; /// /// 不支持的媒体类型 415 /// public readonly static int NoMediaType = 415; /// /// 创建失败 /// public readonly static int CreateFailed = 417; /// /// 服务器错误 500 /// public readonly static int Error = 500; /// /// 网关错误 502 /// public readonly static int GatewayError = 502; /// /// 网关超时 504 /// public readonly static int GatewayTimeOut = 504; /// /// 存储不足 507 /// public readonly static int InsufficientStorage = 507; } }