# Functions
As calls errors.As.
Code returns a new error with an error code.
Codef wraps the output of fmt.Errorf with a code.
HTTPStatus converts status to an error code, and passes it to Code().
HTTPStatusf converts status to an error code, and passes it to Codef().
No description provided by the author
Is calls errors.Is.
New calls errors.New.
Unwrap calls errors.Unwrap.
No description provided by the author
# Constants
ErrBadReuqest indicates that the server responded with a 400 error.
ErrCantCreate indicates that an output file cannot be created.
ErrConflict indicates that the server responded with a 409 error.
ErrData indicates an input file is invalid, such as malformed JSON or YAML.
ErrExpectationFailed indicates that the server responded with a 417 error.
ErrForbidden indicates that the server responded with a 403 error.
ErrInternalServerError indicates that the server responded with a 500 error.
ErrIO indicates an I/O error while reading from or writing to a file or the network.
ErrMethodNotAllowed indicates that the server responded with a 405 error.
ErrNoHost indicates that the host does not exist or cannot be looked up.
ErrNoInput indicates that an input file does not exist or cannot be read.
ErrNotAcceptable indicates that the server responded with a 406 error.
ErrNotFound indicates that the server responded with a 404 error.
ErrPreconditionFailed indicates that the server responded with a 412 error.
ErrProtocol indicates a protocol error, such as a CouchDB server returning a non-JSON response.
ErrRequestedRangeNotSatisfiable indicates that the server responded with a 416 error.
ErrRequestEntityTooLarge indicates that the server responded with a 413 error.
ErrUnauthorized indicates that the server responded with a 401 error.
ErrUnavailable indicates that the server could not be reached, such as a connection refused.
ErrUnknown indicates that the server responded with an HTTP status > 500.
ErrUnsupportedMediaType indicates that the server responded with a 415 error.
ErrUsageError indicates an incorrect command, option, or unparseable configuration or command line options.