MCPcopy Create free account
hub / github.com/MoonKraken/youtube / error_response

Method error_response

FullStackRust/backend/src/api/task.rs:45–49  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

43
44impl ResponseError for TaskError {
45 fn error_response(&self) -> HttpResponse {
46 HttpResponse::build(self.status_code())
47 .insert_header(ContentType::json())
48 .body(self.to_string())
49 }
50
51 fn status_code(&self) -> StatusCode {
52 match self {

Callers

nothing calls this directly

Calls 1

status_codeMethod · 0.45

Tested by

no test coverage detected