When building a RESTful API and a user provides an id of resource that does not exist, should you return 404 Not Found or 400 Bad Request
404 Not Found
400 Bad Request
404 would be a more common practice one. Its for Resource Not Found. In your case the particular URL is not found.
404
Resource Not Found
400 is generally used for Bad Request. You can use this one for any bad request. For eg. MissingRequiredQueryParameter, InvalidInput.
400
Bad Request
MissingRequiredQueryParameter
InvalidInput