diff --git a/src/app/api/org-numbers/route.ts b/src/app/api/org-numbers/route.ts index 8eda3b6ba..81aa8f273 100644 --- a/src/app/api/org-numbers/route.ts +++ b/src/app/api/org-numbers/route.ts @@ -20,7 +20,7 @@ export async function GET(request: NextRequest) { const category = searchParams.get('category') as OrgNumberCategory | null if (category && !VALID_CATEGORIES.includes(category)) { - return apiBadRequest(`Invalid category. Must be one of: ${VALID_CATEGORIES.join(', ')}`) + return apiBadRequest(`Ungültige Kategorie. Erlaubt: ${VALID_CATEGORIES.join(', ')}`) } const numbers = await getOrgNumbers(category ?? undefined) @@ -45,6 +45,6 @@ export async function GET(request: NextRequest) { meta: { source: 'database', count: numbers.length } }) } catch (error) { - return apiError(error, 'Server error') + return apiError(error, 'Serverfehler') } } diff --git a/src/app/api/workshops/[slug]/materials/route.ts b/src/app/api/workshops/[slug]/materials/route.ts index b1b2ebb98..4b016c80e 100644 --- a/src/app/api/workshops/[slug]/materials/route.ts +++ b/src/app/api/workshops/[slug]/materials/route.ts @@ -38,7 +38,7 @@ export async function GET( ) if (workshopResult.rows.length === 0) { - return apiNotFound('Workshop not found') + return apiNotFound('Workshop') } const workshop = workshopResult.rows[0] as { id: string; title: string } diff --git a/src/app/api/workshops/[slug]/reviews/route.ts b/src/app/api/workshops/[slug]/reviews/route.ts index 85309ce22..8f7ba22b6 100644 --- a/src/app/api/workshops/[slug]/reviews/route.ts +++ b/src/app/api/workshops/[slug]/reviews/route.ts @@ -33,7 +33,7 @@ export async function GET( ) if (workshopResult.rows.length === 0) { - return apiNotFound('Workshop not found') + return apiNotFound('Workshop') } const workshopId = (workshopResult.rows[0] as { id: string }).id