Let's say that a lot of people use a link where there's nothing on the server and it throws a 404 status code. Would it mean that the server would have to search its entire database for that resource before throwing a 404 error ?
Would it mean that the server has wasted its power on searching for something that doesn't exist ? How much of an effect would it have on the server's performance or how many of these futile searching attempts would it take to make a dent on server's performance ?