(&self)
| 43 | |
| 44 | impl 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 { |
nothing calls this directly
no test coverage detected