In previous projects, I've used 404. If there's no user 9, then the object was not found. Therefore 404 Not Found is appropriate.
For object exists, but there is no data, 204 No Content would be appropriate. I think in your case, the object does not exist though.