Skip to main content

problem_response

Function problem_response 

Source
pub fn problem_response(
    status: u16,
    title: impl Into<String>,
    detail: impl Into<String>,
    extensions: impl IntoIterator<Item = (String, Value)>,
) -> Response
Expand description

Build a Problem Details response.

extensions are merged into the JSON object (e.g. errors, instance).