Skip to main content

Module error

Module error 

Source
Expand description

The generic error body every 4xx/5xx other than 409 Conflict carries. 409 has its own shape (crate::MissingBlobsError) because a client acts on it rather than reporting it.

Structs§

ErrorResponse
A failed request: something for a human (message) and something for the client to branch on (code). Non-exhaustive so a field can be added without a breaking release: build one with ErrorResponse::new.

Enums§

ErrorCode
Machine-readable failure classification. Non-exhaustive: a newer server may add codes (an unknown one decodes as ErrorCode::Unknown), so a match needs a wildcard arm.