pub enum HttpError {
Show 19 variants BadRequest, Configure(ApiError), DaemonInfo(ApiError), Events(ApiError), NoRoute, ParseBody(SerdeError), QueryString(String), Mount(ApiError), Upgrade(ApiError), BackendMetrics(ApiError), BlobcacheMetrics(ApiError), FsBackendInfo(ApiError), FsFilesMetrics(ApiError), GlobalMetrics(ApiError), InflightMetrics(ApiError), Pattern(ApiError), CreateBlobObject(ApiError), DeleteBlobObject(ApiError), GetBlobObjects(ApiError),
}
Expand description

HTTP error messages sent back to the clients.

The HttpError object will be sent back to client with format!("{:?}", http_error). So unfortunately it implicitly becomes parts of the API, please keep it stable.

Variants

BadRequest

Invalid HTTP request

Configure(ApiError)

Failed to configure the daemon.

DaemonInfo(ApiError)

Failed to query information about daemon.

Events(ApiError)

Failed to query global events.

NoRoute

No handler registered for HTTP request URI

ParseBody(SerdeError)

Failed to parse HTTP request message body

QueryString(String)

Query parameter is missed from the HTTP request.

Mount(ApiError)

Failed to mount filesystem.

Upgrade(ApiError)

Failed to remount filesystem.

BackendMetrics(ApiError)

Failed to get backend metrics.

BlobcacheMetrics(ApiError)

Failed to get blobcache metrics.

FsBackendInfo(ApiError)

Failed to get filesystem backend information

FsFilesMetrics(ApiError)

Failed to get filesystem per-file metrics.

GlobalMetrics(ApiError)

Failed to get global metrics.

InflightMetrics(ApiError)

Failed to get information about inflight request

Pattern(ApiError)

Failed to get filesystem file access trace.

CreateBlobObject(ApiError)

Failed to create blob object

DeleteBlobObject(ApiError)

Failed to delete blob object

GetBlobObjects(ApiError)

Failed to list existing blob objects

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.