Skip to content

Commit 78a0285

Browse files
authored
Merge pull request #350 from honorarydevrel/main
Fix potential incorrect error status code in src/pages/api/recommend.js.
2 parents 2fe3b0e + 89d4078 commit 78a0285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/api/recommend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default async function handler(req, res) {
6565
} catch (error) {
6666
console.error("Error fetching search data:", error);
6767
return res
68-
.status(StatusCodes.Inter)
68+
.status(StatusCodes.INTERNAL_SERVER_ERROR)
6969
.json({ error: ReasonPhrases.INTERNAL_SERVER_ERROR });
7070
}
7171
}

0 commit comments

Comments
 (0)