Handle 404 for user accounts

This commit is contained in:
Zoe Roux
2025-04-07 12:38:48 +02:00
parent b3edf31afc
commit 59533e5f0c
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -174,6 +174,15 @@ export const watchlistH = new Elysia({ tags: ["profiles"] })
authorization: t.TemplateLiteral("Bearer ${string}"),
"accept-language": AcceptLanguage({ autoFallback: true }),
}),
response: {
200: Page(Show),
403: KError,
404: {
...KError,
description: "No user found with the specified id/username.",
},
422: KError,
},
permissions: ["users.read"],
},
),