pub fn problem_json(
status: StatusCode,
title: &str,
detail: &str,
) -> Response<Bytes>Expand description
An RFC 9457 application/problem+json response — the shape Owlpost
answers errors with: type, title, status and detail, the
status both the HTTP status and the body’s own field. Build one for
a scripted sequence, or take it from a
preset like FakeHttpClient::owlpost_problem.