pub enum HttpError {
Show 20 variants
BadRequest,
Configure(ApiError),
DaemonInfo(ApiError),
Events(ApiError),
NoRoute,
ParseBody(Error),
QueryString(String),
Mount(ApiError),
Upgrade(ApiError),
BackendMetrics(ApiError),
BlobcacheMetrics(ApiError),
FsBackendInfo(ApiError),
FsFilesMetrics(ApiError),
GlobalMetrics(ApiError),
InflightMetrics(ApiError),
Pattern(ApiError),
CreateBlobObject(ApiError),
DeleteBlobObject(ApiError),
DeleteBlobFile(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(Error)
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
DeleteBlobFile(ApiError)
Failed to delete blob file
GetBlobObjects(ApiError)
Failed to list existing blob objects