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
Is it a valid request? Can the id of the resource exist? Is it formatted as a proper id? Is it syntactically correct? etc.. If so then you can use, 404 Not Found. Otherwise 400 Bad Request is more suitable.