// Code generated by "codegen"; DO NOT EDIT.

package code

// init register error codes defines in this source code to `github.com/pingcap-inc/pchub/pkg/errors`
func init() {
	register(ErrNoAPIKey, 401, "No available apikey")
	register(ErrContextLengthExceeded, 400, "Context length exceeded")
	register(ErrNoValidMessage, 500, "No valid message content in openai api response")
	register(ErrNoLarkAppIdSecret, 200, "Cannot get valid lark app appid and appsecret")
	register(ErrLarkApiBizErrorCode, 200, "Cannot get valid lark app appid and appsecret")
	register(ErrLarkRequestFail, 200, "Lark request failed")
	register(ErrUserNotFound, 200, "Cannot get valid user")
	register(ErrSuccess, 200, "OK")
	register(ErrUnknown, 500, "Internal server error")
	register(ErrBind, 400, "Error occurred while binding the request body to the struct")
	register(ErrValidation, 400, "Validation failed")
	register(ErrTokenInvalid, 401, "Token invalid")
	register(ErrNotFound, 404, "Not found")
	register(ErrDatabase, 500, "Database error")
	register(ErrRecordNotFound, 200, "No records found")
	register(ErrEncrypt, 401, "Error occurred while encrypting the user password")
	register(ErrSignatureInvalid, 401, "Signature is invalid")
	register(ErrExpired, 401, "Token expired")
	register(ErrInvalidAuthHeader, 401, "Invalid authorization header")
	register(ErrMissingHeader, 401, "The `Authorization` header was empty")
	register(ErrPasswordIncorrect, 401, "Password was incorrect")
	register(ErrPermissionDenied, 403, "Permission denied")
	register(ErrTokenPayload, 401, "Fields missing in token")
	register(ErrNoUserLarkID, 401, "User not found in lark")
	register(ErrEncodingFailed, 500, "Encoding failed due to an error with the data")
	register(ErrDecodingFailed, 500, "Decoding failed due to an error with the data")
	register(ErrInvalidJSON, 500, "Data is not valid JSON")
	register(ErrEncodingJSON, 500, "JSON data could not be encoded")
	register(ErrDecodingJSON, 500, "JSON data could not be decoded")
	register(ErrInvalidYaml, 500, "Data is not valid Yaml")
	register(ErrEncodingYaml, 500, "Yaml data could not be encoded")
	register(ErrDecodingYaml, 500, "Yaml data could not be decoded")
	register(ErrCastInterface, 500, "Interface cannot be force cast to specific type")
	register(ErrHttpRequest, 500, "Http request failed")
	register(ErrOpenAIHttpRequest, 500, "OpenAI api http request failed")
	register(ErrQueryDBRequest, 500, "Query db failed")
	register(ErrOncallBotRequest, 500, "PingChat bot failed")
	register(ErrAutoXRequest, 500, "AutoX request failed")
}
