namespace TakeoutSaaS.Shared.Abstractions.Constants; /// /// 统一错误码常量。 /// public static class ErrorCodes { /// /// 请求参数错误。 /// public const int BadRequest = 400; /// /// 未授权访问。 /// public const int Unauthorized = 401; /// /// 权限不足。 /// public const int Forbidden = 403; /// /// 资源未找到。 /// public const int NotFound = 404; /// /// 资源冲突。 /// public const int Conflict = 409; /// /// 校验失败。 /// public const int ValidationFailed = 422; /// /// 服务器内部错误。 /// public const int InternalServerError = 500; /// /// 业务自定义错误(10000+)。 /// public const int BusinessError = 10001; }