package code

// Apiserver: apiserver errors.
// Code must start with 11xxxx.
const (
	// ErrNoAPIKey - 401: No available apikey.
	ErrNoAPIKey int = iota + 110001
	// ErrContextLengthExceeded - 400: Context length exceeded.
	ErrContextLengthExceeded
	// ErrNoValidMessage - 500: No valid message content in openai api response.
	ErrNoValidMessage
)

const (
	// ErrNoLarkAppIdSecret - 200: Cannot get valid lark app appid and appsecret.
	ErrNoLarkAppIdSecret int = iota + 110101
	// ErrLarkApiBizErrorCode - 200: Cannot get valid lark app appid and appsecret.
	ErrLarkApiBizErrorCode
	// ErrLarkRequestFail - 200: Lark request failed.
	ErrLarkRequestFail
)

const (
	// ErrUserNotFound - 200: Cannot get valid user.
	ErrUserNotFound int = iota + 110201
)
