Skip to main content

Module error

Module error 

Source
Expand description

The admin API’s error type.

Deliberately not acme_proxy_core::error::Problem. Every Problem type is a hardcoded urn:ietf:params:acme:error:* URN, and nothing on this listener is an ACME error — answering a failed admin login with an ACME problem document would be a category error that a client library might even try to interpret.

{ "error": "not_found", "message": "no such account: acct-1" }

error is a stable snake_case code a caller may branch on; message is for a human and may change.

Structs§

AdminError
A failed admin request. Clone so pages::refuse_with_card can render a refusal and keep the borrowed original: it builds the response from into_response, which consumes, and the caller still owns the error it was handed.