network/httpclient/exception.go

28 lines
793 B
Go
Raw Normal View History

2023-08-10 14:29:19 +08:00
// Package httpclient ...
2022-05-01 21:11:52 +08:00
//
// Author: go_developer@163.com<白茶清欢>
//
// Description: 定义异常
//
// File: exception.go
//
// Version: 1.0.0
//
// Date: 2022/05/01 20:40:08
2023-08-10 14:29:19 +08:00
package httpclient
2022-05-01 21:11:52 +08:00
const (
// ResponseCodeNotFound 响应结果获取不到状态码字段
ResponseCodeNotFound = 404000000002
2022-05-01 21:11:52 +08:00
// ResponseDataNotFound 响应结果获取不到数据字段
ResponseDataNotFound = 404000000004
2022-05-02 15:17:21 +08:00
// SendRequestError 请求发送出现异常
SendRequestError = 400000000002
2023-08-26 20:31:21 +08:00
// ReadResponseBodyError 读取响应数据体出现异常
ReadResponseBodyError = 400000000003
2022-05-01 21:49:17 +08:00
// RequestMethodNotSupport 请求方法不支持
RequestMethodNotSupport = 405000000001
// ResponseHttpCodeIsNotSuccess 响应的http状态码非成功
ResponseHttpCodeIsNotSuccess = 500000000001
2022-05-01 21:11:52 +08:00
)