# Functions
ApplyOptions applies the given options to the error if is the type *Error.
BadRequest creates a 400 error with the given format and arguments.
BadRequestErr returns an 400 error with the given error.
Errorf creates a new error using the given format and status code.
Forbidden creates a 403 error with the given format and arguments.
ForbiddenErr returns an 403 error with the given error.
InternalServer creates a 500 error with the given format and arguments.
InternalServerErr returns a 500 error with the given error.
New creates a new http error with the given status and message.
NewErr returns a new Error.
NewError creates a new http error with the given error and message.
NotFound creates a 404 error with the given format and arguments.
NotFoundErr returns an 404 error with the given error.
NotImplemented creates a 501 error with the given format and arguments.
NotImplementedErr returns a 501 error with the given error.
StatusCodeError selects the proper error based on the status code.
Unauthorized creates a 401 error with the given format and arguments.
UnauthorizedErr returns an 401 error with the given error.
UnexpectedErr will be used when the certificate authority makes an outgoing request and receives an unhandled status code.
WithKeyVal returns an Option that adds the given key-value pair to the Error details.
WithMessage returns an Option that modifies the error by overwriting the message only if it is empty.
Wrap returns an error annotating err with a stack trace at the point Wrap is called, and the supplied message.
Wrapf returns an error annotating err with a stack trace at the point Wrap is called, and the supplied message.
# Constants
BadRequestDefaultMsg 400 default msg.
BadRequestPrefix is the prefix added to the bad request messages that are directly sent to the cli.
ForbiddenDefaultMsg 403 default msg.
ForbiddenPrefix is the prefix added to the forbidden messates that are sent to the cli.
InternalServerErrorDefaultMsg 500 default msg.
NotFoundDefaultMsg 404 default msg.
NotImplementedDefaultMsg 501 default msg.
UnauthorizedDefaultMsg 401 default msg.
# Structs
Error represents the CA API errors.
ErrorResponse represents an error in JSON format.
# Interfaces
Messenger is a friendly message interface that errors can implement.
# Type aliases
Option modifies the Error type.