404 Error 

404 错误

What is a 404 Error?

什么是 404 错误?

A 404 error is an HTTP status code indicating that the server could not find the requested resource or page. In other words, the server could not locate the web page or file at the requested address. The number “404” is derived from the “HTTP 404 Not Found” response status code that the server returns to the client (typically a web browser).
404 错误是一个 HTTP 状态代码,指示服务器找不到请求的资源或页面。换句话说,服务器无法在请求的地址找到网页或文件。数字 “404” 派生自服务器返回给客户端 (通常是 Web 浏览器) 的 “HTTP 404 Not Found” 响应状态代码。

Most often, this error occurs when a user clicks on a hyperlink to a page or resource that has been removed from the server, or when the resource has changed its address. It can also happen when a user types in an incorrect URL or when a website is undergoing maintenance.
大多数情况下,当用户单击指向已从服务器中删除的页面或资源的超链接时,或者当资源更改了其地址时,会发生此错误。当用户键入不正确的 URL 或网站正在进行维护时,也会发生这种情况。

The links pointing to 404 pages are called broken links.
指向 404 页面的链接称为 断开的链接

When a 404 error occurs, the web browser typically displays a message to the user stating that the requested page or resource cannot be found. Web developers can customize this error message to provide more information or suggest alternative pages for users to visit.
发生 404 错误时,Web 浏览器通常会向用户显示一条消息,指出找不到请求的页面或资源。Web 开发人员可以自定义此错误消息,以提供更多信息或建议其他用户访问的替代页面。

Here’s what a 404 page on our blog looks like:
这是我们博客上的 404 页面的样子:
a 404 page on ahrefs blog

FAQ 常见问题

What is a 410 error?

什么是 410 错误?

The 410 error is very similar to the 404 error. It indicates that the server was able to find the requested address, but the resource is no longer available and will not be available again. The 410 Gone response code specifically indicates that the resource used to exist and is now deleted.
410 错误与 404 错误非常相似。它表示服务器能够找到请求的地址,但该资源不再可用,并且不会再次可用。410 Gone 响应代码专门指示资源曾经存在,现在已被删除。

For website visitors, the 410 is generally no different from the 404 error.
对于网站访问者来说,410 通常与 404 错误没有什么不同。