Skip to main content

Module error

Module error 

Source
Expand description

OCI error response shape and mapping to HTTP status codes.

Spec: OCI Distribution Spec v1.1 §3.1 “Error codes”.

Every 4xx/5xx response returned by the handlers in this crate must be application/json with a body of the form:

{ "errors": [ { "code": "...", "message": "...", "detail": { ... } } ] }

The set of valid code values is fixed by the specification — the conformance suite greps response bodies for these exact strings, so the enum here must never drift from §3.1.

Structs§

OciError
The error type returned by every handler in this crate.
OciErrorBody
Top-level JSON response body for an error.
OciErrorInfo
One entry in the error response array.

Enums§

OciErrorCode
Registry error codes defined by OCI Distribution Spec v1.1 §3.1.

Type Aliases§

OciResult
Convenience alias for handler results.