# Functions
NewErrtypeFromHTTPStatusCode maps a http status to an errtype.
NewErrtypeFromStatus maps a rpc status to an errtype.
NewHTTPStatusCodeFromErrtype maps an errtype to a http status.
# Constants
StatusChecksumMismatch 419 is an unofficial http status code in an unassigned range that is used for checksum mismatches Proposed by https://stackoverflow.com/a/35665694 Official HTTP status code registry: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml Note: TUS uses unassigned 460 Checksum-Mismatch RFC proposal for checksum digest uses a `Want-Digest` header: https://tools.ietf.org/html/rfc3230 oc clienst issue: https://github.com/owncloud/core/issues/22711.
StatusInsufficientStorage 507 is an official HTTP status code to indicate that there is insufficient storage https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507.
# Interfaces
IsAborted is the interface to implement to specify that a request was aborted.
IsAlreadyExists is the interface to implement to specify that a resource already exists.
IsBadRequest is the interface to implement to specify that the server cannot or will not process the request.
IsChecksumMismatch is the interface to implement to specify that a checksum does not match.
IsInsufficientStorage is the interface to implement to specify that there is insufficient storage.
IsInternalError is the interface to implement to specify that there was some internal error.
IsInvalidCredentials is the interface to implement to specify that credentials were wrong.
IsLocked is the interface to implement to specify that a resource is locked.
IsNotFound is the interface to implement to specify that a resource is not found.
IsNotSupported is the interface to implement to specify that an action is not supported.
IsPartialContent is the interface to implement to specify that the client request has partial data.
IsPermissionDenied is the interface to implement to specify that an action is denied.
IsPreconditionFailed is the interface to implement to specify that a precondition failed.
IsTooEarly is the interface to implement to specify that there is some not finished job over resource is still in process.
IsUserRequired is the interface to implement to specify that a user is required.
# Type aliases
Aborted is the error to use when a client should retry at a higher level (e.g., when a client-specified test-and-set fails, indicating the client should restart a read-modify-write sequence) request fails because a requested etag or lock ID mismatches.
AlreadyExists is the error to use when a resource something is not found.
BadRequest is the error to use when the server cannot or will not process the request (due to a client error).
ChecksumMismatch is the error to use when the transmitted hash does not match the calculated hash.
InsufficientStorage is the error to use when there is insufficient storage.
InternalError is the error to use when we really don't know what happened.
InvalidCredentials is the error to use when receiving invalid credentials.
Locked is the error to use when a resource cannot be modified because of a lock.
NotFound is the error to use when a something is not found.
NotModified is the error to use when a resource was not modified, e.g.
NotSupported is the error to use when an action is not supported.
PartialContent is the error to use when the client request has partial data.
PermissionDenied is the error to use when a resource cannot be access because of missing permissions.
PreconditionFailed is the error to use when a client should not retry until the system state has been explicitly fixed.
TooEarly is the error to use when some are not finished job over resource is still in process.
UserRequired represents an error when a resource is not found.