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
Auto Trait Implementations
impl !RefUnwindSafe for HttpError
impl Send for HttpError
impl Sync for HttpError
impl Unpin for HttpError
impl !UnwindSafe for HttpError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more