What's the difference between returning 451 when a page is taken down due to compliance requirements and directly giving a 404?

📅 2026-10-11 Eye 10

The difference between returning 451 and 404 when a page is taken down due to compliance requirements is not in whether visitors can see the content, but in whether the reason for the unavailability is clearly stated in the status code. According to the definition in the status code document, 451 indicates that the requested resource is unavailable due to legal reasons, a typical example being a web page that has received legal action; 404 only indicates that the requested resource cannot be found without any reason information.

What 451 says and what it does not say

The expression range of 451 is very narrow: it indicates that 'There is something here, which cannot be given due to legal requirements', and it does not mean that the page does not exist or that access is denied. These three meanings correspond to two other status codes: 404 for the resource does not exist, 403 for the server denying this access, and 410 for the resource being deleted and no longer available.

Convert pages taken down due to compliance into 404 errors, which may seem convenient in the short term at the cost of losing all information. Visitors cannot distinguish between 'this article has been removed' and 'the address is incorrect'; for the site itself, the logs also do not show which addresses have been handled and which have been deleted incorrectly, making it difficult to verify and appeal after the fact.

Where the party responsible for the explanation is written is more likely to cause problems.

There is a clear reminder in the status code document: The Link header can carry rel=blocked-by, used to identify the party implementing the block, not the party making the request; any attribution of ultimate responsibility should be written in the response body and not included in this link relationship.

This boundary is very real in compliance scenarios. The reader of the response header and body is different: header fields are easily transmitted by intermediate devices or treated as technical metadata, while explanations such as 'why the requirement, based on which rule, when may it be restored' are aimed at humans, and are more stable and easier to screenshot and keep as evidence in the main text. In simple terms, status codes are responsible for indicating the type, and text is responsible for explaining the reasons.

How does the shelf-down page flow within the site

The 'decommissioning' in the content management system is usually not an action, but a chain. Taking AnQiCMS, a site that supports content review and sensitive word filtering, as an example, the chain is roughly divided into three steps:

  1. Firstly, determine the handling method in the review stage, whether it is temporarily withdrawn, replace paragraphs, or delete;
  2. Then decide the status, draft and pending release status can stay in the background for further modification, and formal decommissioning involves external return codes;
  3. Finally, handle the surrounding issues, such as the site map, link push records, and internal links need to be synchronized, otherwise one decommissioning will still be caught at multiple places.

The site map and push need to be modified accordingly.

This is the easiest step to overlook. If the site map still contains out-of-stock addresses, the crawling end will repeatedly return to get 451, and it will look like an inclusion exception for a period of time; conversely, directly deleting the address will make the originally stable entrance become a dead link. The reasonable approach is to let the surrounding follow the status: temporarily withdrawn pages are removed from the site map but kept in-site hints, and addresses confirmed to no longer return are redirected to the receiving page and the jump is equipped.

It should be noted that the status code itself cannot replace content review judgment. It is just to clarify the reason why the content is not visible now, and the basis for judgment should still be recorded in the internal process.

Common questions

Question: Can 451 be used for temporary delisting?Answer: 451 corresponds to unavailability due to legal reasons. For temporary maintenance,灰度or internal delisting, use 503 or keep the page with a prompt to be more semantically appropriate, and do not use 451 as a general delisting code.

Question: Should deleted articles also return 451?Answer: No. Deletion means the resource no longer exists, and it can be kept in a recoverable state with the help of the recycle bin mechanism; if the external address is confirmed to be invalid, 410 or 404 is more accurate.

Question: Will returning 451 affect search inclusion?Answer: The status code will make the address no longer considered an indexable page. What really needs to be concerned about is whether the sitemap and internal links are synchronizedly removed to avoid the repeated crawling of the same address.

Related articles

What are the entry requirements for taking back the mandatory jump to HTTPS after joining the preload list?

To bring back the mandatory jump to HTTPS of the site, it is necessary to distinguish between two layers: the response header only takes effect for browsers that have already visited, and after entering the preloading whitelist, the threshold is a validity period of at least one year and must include subdomains. This article explains the criteria for both, why it is necessary to go through a secure request when撤销ing, and which layer to change when modifying the configuration within the site.

2026-10-11

Why should directory upload be prohibited from type sniffing, and what are the differences in configuration methods between the two types of web servers?

The upload directory needs to add a response header to prohibit type sniffing because browsers default to inferring types based on content, so uploaded files may be executed as scripts. After prohibition, browsers only process types declared, and script and style class request types that do not match will be blocked directly. This article compares the differences between Apache and Nginx in issuing this rule and provides the check sequence for deployment.

2026-10-11

The scoring criteria has been upgraded to a major version, can the severity of the two announcements be compared directly.

The vulnerability scoring criteria changed from 3.1 to 4.0, and the scores given by the two announcements cannot be simply compared horizontally. The qualitative grading intervals are compatible between versions, still divided into four grades from zero to ten, but the scope of assessment does not include economic losses. This article explains what the score and grading are compared to across versions and falls into the follow-up action for a high-risk fix at home once.

2026-10-11

The support scope of the security announcement only lists the main program, and the issues extended out are whose responsibility.

The scope of support for the security announcement of the content system is often only written for the main program, framework, and official site, and the vulnerabilities of third-party extensions are not on this list. The Joomla Security Center explicitly states that it only provides support for these types. This article explains which channel to publish extension issues and the two gaps within the site: content review before entry and permission control according to roles.

2026-10-11

How to turn off camera and location capabilities by default in the response header for web pages that do not need them?

Using the Permissions-Policy response header to turn off camera, microphone, and location capabilities not used by the page, the core is that the default allowed list values only have three: asterisk, same-origin, and empty. This article explains the scope of this header, why the nested frame must appear in the parent page list at the same time, and the boundary that the allow attribute can only be narrowed but not broadened.

2026-10-11

What request header is used for resuming a large file download, and what will the server return if it does not support it?

Resuming a file download depends on the Range header in the request, combined with the Accept-Ranges header in the response to determine if the server supports range requests. The server returns 206 for valid ranges and 416 for invalid ranges; servers that do not support range requests will simply ignore this header and return the entire 200 response. This article explains the method of judgment, byte offset notation, and the additional benefits of a single segment range.

2026-10-11

The security version of the content system fixes multiple issues at once, and the appearance of an AI research institution in the report indicates what.

In a content system's security release statement, multiple fixes have appeared from AI research institutions and security audit companies. This is more like a change in the division of labor in the vulnerability discovery process: auxiliary audit has started to enter the disclosure process. This article reads this announcement item by item and gives three places to check when following up on the site.

2026-10-11

The open-source content system posted a security patch preview days in advance, what should the operation and maintenance team do in these days?

The security patch preview only provides the time window and risk level, without giving details of the vulnerability. The preparations that can be made in these days are therefore very specific: confirm whether the module is within the scope, back up the data and static files, practice the upgrade path on the copy, prepare the checklist for the release day, and reserve time for rollback and review.

2026-10-11