// 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(ErrGetAuthingTokenInfo, 200, "Cannot get authing token from context")
	register(ErrUserNotFound, 404, "User not found")
	register(ErrNoAuthingAppIdSecret, 200, "Cannot get valid authing appid and appsecret")
	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(ErrNoBQSAFile, 500, "Cannot get bigquery service_account file")
	register(ErrBGServiceFailed, 500, "Cannot new bigquery service")
	register(ErrResourceNotFound, 404, "Cannot find cloud resource")
	register(ErrApprovalNotFound, 404, "Approval not found")
	register(ErrNotCloudOwner, 403, "You must be the owner to submit this approval")
	register(ErrNotApprovalOwner, 403, "You must be the owner of the approval")
	register(ErrApprovalType, 400, "Approval type invalid")
	register(ErrOverBudget, 200, "Over budget")
	register(ErrBudgetLowerThanCost, 200, "Budget is lower than actual cost")
	register(ErrBudgetNotFound, 200, "Budget not found")
	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(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")
}
