Skip to content

Commit 89d4078

Browse files
Merge pull request #1 from honorarydevrel/cursor/identify-and-fix-codebase-issues-5b98
Fixed incorrect error status code in src/pages/api/recommend.js.
2 parents 2fe3b0e + 2ed419f commit 89d4078

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)