MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / transform_error

Function transform_error

ch_10/src/profanity.rs:70–77  ·  view source on GitHub ↗
(
    res: reqwest::Response,
)

Source from the content-addressed store, hash-verified

68}
69
70async fn transform_error(
71 res: reqwest::Response,
72) -> handle_errors::APILayerError {
73 handle_errors::APILayerError {
74 status: res.status().as_u16(),
75 message: res.json::<APIResponse>().await.unwrap().message,
76 }
77}

Callers 1

check_profanityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected