Skip to main content
Node.js Output Prediction Easy +10 XP

HTTP Status

What HTTP status code means 'Not Found'?

Node.jsRead-only
res.status(404).json({ error: "Not Found" });

What is the output?

Show answer and explanation

Answer: 404

HTTP 404 means the requested resource was not found on the server.

Hint: The number is in the code.

What this challenge tests

Output Prediction in Node.js: http, express.

Related challenges