404 Not Found

The HTTP status meaning there is no resource at the requested address.

In more detail

Some services also use 404 to hide the existence of something the caller may not see, but that should be a deliberate, documented choice. Answer it with a problem details body rather than a 200 with an empty object, so clients and caches cannot mistake it for a real result.

Examples

In the APIs course: The course service answers a missing task with 404 and a problem details body, never 200 with an empty object.
The course answers not found, rather than forbidden, for an object the caller may not have, so an attacker cannot map which records exist.

Related terms

Taught in

References