1 Star 0 Fork 0

数字证书签名及管理系统 / common

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
var.go 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
ivfzhou 提交于 2024-04-21 14:40 . feat: 修改应用信息
/*
* Copyright (c) 2023 ivfzhou
* common is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package errs
import "net/http"
// ErrNeedLogin 需登录
var ErrNeedLogin error = &Error{
HTTPStatus: http.StatusUnauthorized,
Msg: "请先登陆",
}
// ErrFileNotExists 文件不存在
var ErrFileNotExists error = &Error{
HTTPStatus: http.StatusNotFound,
Msg: "文件不存在",
}
// ErrIllegalRequest 非法请求
var ErrIllegalRequest error = &Error{
HTTPStatus: http.StatusExpectationFailed,
Msg: "非法请求",
}
// ErrTooManyRequest 请求频繁
var ErrTooManyRequest error = &Error{
HTTPStatus: http.StatusTooManyRequests,
Msg: "请求过载",
}
// ErrNoAuth 无授权或授权非法
var ErrNoAuth error = &Error{
HTTPStatus: http.StatusForbidden,
Msg: "未授权访问",
}
1
https://gitee.com/CertificateAndSigningManageSystem/common.git
git@gitee.com:CertificateAndSigningManageSystem/common.git
CertificateAndSigningManageSystem
common
common
17910edae771

搜索帮助