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.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".