aboutsummaryrefslogtreecommitdiff
path: root/src/api/helpers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/helpers.rs')
-rw-r--r--src/api/helpers.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/api/helpers.rs b/src/api/helpers.rs
index aa350e3c..9fb12dbe 100644
--- a/src/api/helpers.rs
+++ b/src/api/helpers.rs
@@ -1,6 +1,6 @@
use hyper::{Body, Request};
use idna::domain_to_unicode;
-use serde::Deserialize;
+use serde::{Deserialize, Serialize};
use crate::common_error::{CommonError as Error, *};
@@ -279,3 +279,11 @@ mod tests {
);
}
}
+
+#[derive(Serialize)]
+pub(crate) struct CustomApiErrorBody {
+ pub(crate) code: String,
+ pub(crate) message: String,
+ pub(crate) region: String,
+ pub(crate) path: String,
+}