[−][src]Trait svc_error::ProblemDetails
Problem Details
Required methods
fn kind(&self) -> &str
Return a URI reference RFC3986 that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type. When this member is not present, its value is assumed to be "about:blank".
fn title(&self) -> &str
Return a short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization
fn status_code(&self) -> StatusCode
Return the HTTP status code generated by the origin server for this occurrence of the problem.
fn set_kind(&mut self, kind: &str, title: &str) -> &mut Self
Set a kind and a title.
fn set_status_code(&mut self, value: StatusCode) -> &mut Self
Set a status code.