about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index aecdf36..37dd70c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -44,7 +44,8 @@ fn request_id_string(request_id: &RequestId) -> Option<String> {
 }
 
 #[utoipa::path(get, path = "/", responses(
-    (status = 200, description = "Greeting", body = String)
+    (status = 200, description = "Greeting", body = String),
+    (status = 500, description = "Internal error", body = ApiError)
 ))]
 async fn hello_world() -> &'static str {
     "Hello, world!"
@@ -61,7 +62,8 @@ struct VersionInfo {
 }
 
 #[utoipa::path(get, path = "/version", responses(
-    (status = 200, description = "Build information", body = VersionInfo)
+    (status = 200, description = "Build information", body = VersionInfo),
+    (status = 500, description = "Internal error", body = ApiError)
 ))]
 async fn version() -> Json<VersionInfo> {
     Json(VersionInfo {