# Functions
BadRequest creates a new error to represent an error caused by the client sending an invalid request.
Forbidden creates a new error representing a resource that cannot be accessed with the current authorisation credentials.
FromHTTPStatus returns an error where the code is derived from the HTTP status code.
InternalService creates a new error to represent an internal service error.
Is returns whether the code matches that of the error.
NotFound creates a new error representing a resource that cannot be found.
PreconditionFailed creates a new error indicating that one or more conditions given in the request evaluated to false when tested on the server.
Timeout creates a new error representing a timeout from client to server.
Unauthorized creates a new error indicating that authentication is required, but has either failed or not been provided.
WithCode wraps the error with a new code.
WithMessage wraps the error with an extra message.
WithMetadata will wrap the error with extra metadata.
Wrap wraps the given error.
# Constants
Generic error codes.
Generic error codes.
Generic error codes.
Generic error codes.
Generic error codes.
Generic error codes.
Generic error codes.
# Type aliases
Code is an identifier of a particular class of error.