← All status codes

404

Not Found

It's not here. Maybe it never was.

When to actually use it

Missing resource. Keep the response vague on purpose so you don't leak whether IDs are valid.

Where people mess up

Returning 404 when the route exists but the handler is broken (that's a 500), or using it for 'you can't see this' (that's 403).

The joke

The most famous page on the internet. It’s not that you’re lost — the resource is. (Unless it’s a 410, and then it’s gone gone.)