(&self)
| 25 | |
| 26 | impl ResponseError for AuthError { |
| 27 | fn error_response(&self) -> actix_web::HttpResponse { |
| 28 | HttpResponse::build(self.status_code()) |
| 29 | .insert_header(ContentType::html()) |
| 30 | .body(self.to_string()) |
| 31 | } |
| 32 | fn status_code(&self) -> StatusCode { |
| 33 | match self { |
| 34 | Self::WrongCredentials => StatusCode::BAD_REQUEST, |
nothing calls this directly
no test coverage detected