HTTP 404 — Not Found
The requested resource could not be found
When to use it
Use status 404 when this is the correct HTTP response semantic: The requested resource could not be found
Request and response example
GET /users/9999 HTTP/1.1
Host: api.example.com
HTTP/1.1 404 Not Found
Content-Type: application/json
{"error":"User not found"}