diff --git a/meilisearch-types/src/error.rs b/meilisearch-types/src/error.rs index f1ce0f217..4858b2886 100644 --- a/meilisearch-types/src/error.rs +++ b/meilisearch-types/src/error.rs @@ -11,8 +11,8 @@ use serde::{Deserialize, Serialize}; #[serde(rename_all = "camelCase")] pub struct ResponseError { #[serde(skip)] - code: StatusCode, - message: String, + pub code: StatusCode, + pub message: String, #[serde(rename = "code")] error_code: String, #[serde(rename = "type")]