Kizspy Question: 3
(Choose 1 answer)
What will the following API endpoint return when called with an invalid user ID?
javascript
Copy code
app.get('/user/id', (req, res) => {
const userld = req.params.id;
if (!isValidId(userld)) {
res.status(400).send("Invalid ID");
} else {
res.status(200).send("User details");
});
A. 400 and "Invalid ID"
B. 500 and "Internal Server Error"
C. 404 and "Not Found"
D. 200 and "User details"