Q3.webp
N

Q3.webp

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"

Thông tin

Category
SDN302
Thêm bởi
Ngọc Lan1
Ngày thêm
Lượt xem
3,288
Lượt bình luận
14
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom