package common

type ErrorCode int

const (
	// 401 variants
	ErrCodeInvalidCredentials ErrorCode = 4011
	ErrCodeInvalidAuthToken   ErrorCode = 4012
	ErrCodeAuthRequired       ErrorCode = 4013

	// 403 variants
	ErrCodeInactiveAccount ErrorCode = 4031
	ErrCodeNotPermitted    ErrorCode = 4032

	// 409 variants
	ErrCodeEditConflict       ErrorCode = 4091
	ErrCodeAlreadyVoted       ErrorCode = 4092
	ErrCodeAlreadyBlindSigned ErrorCode = 4093
	ErrCodeVoteAlreadyCast    ErrorCode = 4094

	// 422 variants
	ErrCodeValidationFailed ErrorCode = 4221
	ErrCodeBlindedVoteRange ErrorCode = 4222
	ErrCodeInvalidSignature ErrorCode = 4223
)
