A 404 error is an HTTP status code indicating that the server could not locate the requested web page or file. This error typically occurs when a user clicks on a link to a non-existent page or resource, enters an incorrect URL, or tries to access a website under maintenance.