pub trait StatusError {
// Required methods
fn status(&self) -> u16;
fn message(&self) -> Option<Value>;
}Expand description
A trait for errors that have an HTTP status code and optional message.
pub trait StatusError {
// Required methods
fn status(&self) -> u16;
fn message(&self) -> Option<Value>;
}A trait for errors that have an HTTP status code and optional message.