We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8444797 commit 4b1d8fcCopy full SHA for 4b1d8fc
apps/backend/src/controllers/search.controller.ts
@@ -20,7 +20,19 @@ export const searchDocUtil = async (
20
const { input } = req.query;
21
22
if (!input || typeof input !== 'string') {
23
- res.status(400).json(formatResponse({ error: 'Missing search input' }));
+ res.status(400).json(
24
+ formatResponse({
25
+ error: {
26
+ code: 'MISSING_INPUT',
27
+ title: 'Missing Input',
28
+ message: 'Missing search input',
29
+ },
30
+ status: 400,
31
+ data: null,
32
+ message: null,
33
+ description: null,
34
+ })
35
+ );
36
return;
37
}
38
0 commit comments