pub trait ResponseTransform {
// Provided methods
fn transform(
&self,
name: &str,
err: &dyn Error,
status_code: StatusCode,
reason: Option<Value>,
_type: Option<String>,
details: Option<Value>,
) -> HttpResponse { ... }
fn default_error_status_code(&self) -> StatusCode { ... }
}
Expand description
A trait that transforms information about an thiserror error into a response as desired by the implementor.