# Functions
CreateHTTPErr constructs a new HTTP error.
GetCause gets the root cause of the error.
IsFatalError return true if the error is of type 'FatalErr'.
NewAuthenticationErr constructs an HTTP error specifically indicating an authentication failure.
NewAuthorizationErr constructs an HTTP error specifically indicating an authorization failure.
NewFatalError constructs a fatal error.
NewHTTPErr constructs a new HTTP error wrappered with pkg/errors error.
NewServerError constructs a server error.
Print prints a properly formatted http error string.
# Constants
Failed to add identity.
Error occurred while generating attribute extension.
Authorization failure.
Authorization failure.
Bad certificate signing request.
HTTP request body was of the wrong format.
The token in the authorization header was invalid.
CA certificate file is not found warning message.
The caller was not authenticated.
Caller does not have appropriate affiliation to perform requested action.
The CA (Certificate Authority) name was not found.
Certificate that is being revoked has already been revoked.
Certificate has expired.
Certificate was not found.
Failed trying to check if certificate is revoked.
Certificate has been revoked.
Certificate to be revoked is not owned by expected user.
Common name does not match username during enroll.
Invalid configuration setting.
Incorrect level of configuration file.
Error connecting to database.
Error occured while deleting user.
Error occured when making a Get request to database.
Incorrect level of database.
Registering multiple identities with same name.
HTTP request body was empty but should not have been.
Enrollment is currently disabled for the server.
Failed to generate CRL.
Failed to get CA cert.
Failed to get CA signer.
Failed to get user's affiliation.
Failed to get boolean query parameter.
Failed to get requested certificate(s).
Failed to verify if caller has appropriate type.
Failed to get user from database.
Error processing HTTP request.
Input validation failed on CSR.
Invalid boolean value for attribute.
Invalid ExpiredAfter value in the GenCRL request.
Action is not allowed when using LDAP.
Error for invalid max enrolment registeration value.
Invalid password.
Invalid RevokedAfter value in the GenCRL request.
Invalid token in authorization header.
Invalid user name.
Invoker does not have required attribute to perform function.
HTTP method not allowed.
Registrar does not own 'hf.Registrar.Attributes'.
Missing fields in the revocation request.
Caller does not have the appropriate role.
Failed to modify identity.
No authorization header was found in request.
Failed to revoke any certificates by identity.
CA cert does not have 'crl sign' usage.
The caller does not have authority to generate a CRL.
Failed to get identity's prekey.
The caller does not have the "hf.Revoker" attibute.
No username and password were in the authorization header.
Error occurred parsing variable as an integer.
Incorrect password limit reached.
Failed reading the HTTP request body.
Registrar does not have the authority to register an attribute.
Error occured registering identity.
Registrar not authorized to act on type.
Registrar not authorized to act on affiliation.
Registrat does not have authority to register identity.
Error occured while removing affiliation in database.
Failed to remove identity.
Certificate to be revoked was not found.
Failed to get revoked certs from the database.
Error occurs when invoking a request revoked enrollment ID.
Certificate revocation failed for another reason.
Identity of certificate to be revoked was not found.
Revoker's affiliation not equal to or above revokee's affiliation.
Failed to update user info when revoking identity.
User info was not found for issuee of revoked certificate.
Failed to send an HTTP response.
Unknown error code.
Certificate was not issued by a trusted authority.
Failed to add new affiliation.
Unauthorized to perform update action.
Failed to modiy affiliation.
Failed to remove affiliation.