package
1.6.3
Repository: https://github.com/marmotedu/iam.git
Documentation: pkg.go.dev

# Constants

ErrBind - 400: Error occurred while binding the request body to the struct.
ErrDatabase - 500: Database error.
ErrDecodingFailed - 500: Decoding failed due to an error with the data.
ErrDecodingJSON - 500: JSON data could not be decoded.
ErrDecodingYaml - 500: Yaml data could not be decoded.
ErrEncodingFailed - 500: Encoding failed due to an error with the data.
ErrEncodingJSON - 500: JSON data could not be encoded.
ErrEncodingYaml - 500: Yaml data could not be encoded.
ErrEncrypt - 401: Error occurred while encrypting the user password.
ErrExpired - 401: Token expired.
ErrInvalidAuthHeader - 401: Invalid authorization header.
ErrInvalidJSON - 500: Data is not valid JSON.
ErrInvalidYaml - 500: Data is not valid Yaml.
ErrMissingHeader - 401: The `Authorization` header was empty.
ErrPageNotFound - 404: Page not found.
ErrPasswordIncorrect - 401: Password was incorrect.
PermissionDenied - 403: Permission denied.
ErrPolicyNotFound - 404: Policy not found.
ErrEncrypt - 400: Secret reach the max count.
ErrSecretNotFound - 404: Secret not found.
ErrSignatureInvalid - 401: Signature is invalid.
ErrSuccess - 200: OK.
ErrTokenInvalid - 401: Token invalid.
ErrUnknown - 500: Internal server error.
ErrUserAlreadyExist - 400: User already exist.
ErrUserNotFound - 404: User not found.
ErrValidation - 400: Validation failed.

# Structs

ErrCode implements `github.com/marmotedu/errors`.Coder interface.