Internet-Draft The Preliminary Request Denied HTTP Stat February 2026
Nottingham Expires 27 August 2026 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-nottingham-httpbis-pre-denied-00
Published:
Intended Status:
Standards Track
Expires:
Author:
M. Nottingham
Cloudflare

The Preliminary Request Denied HTTP Status Code

Abstract

This specification defines a HTTP status code to indicate that the server is denying a prefetch or preload request.

About This Document

This note is to be removed before publishing as an RFC.

Status information for this document may be found at https://datatracker.ietf.org/doc/draft-nottingham-httpbis-pre-denied/.

information can be found at https://mnot.github.io/I-D/.

Source for this draft and an issue tracker can be found at https://github.com/mnot/I-D/labels/pre-denied.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 27 August 2026.

Table of Contents

1. Introduction

[FETCH] introduces a mechanism whereby HTTP [HTTP] user agents can speculatively request a representation of a resource, in order to improve perceived performance.

In some circumstances, a server might have information that leads it to believe that sending a full response will not improve performance, and could have negative impacts.

When this happens, it is common practice to use a 503 (Service Unavailable) status code. However, this has been shown to cause confusion: a server operator who sees a spike in that status code being sent tends to draw the conclusion that there is a server-side operational issue.

While other status codes (e.g., 403 (Forbidden)) could be used, they can also suffer (to varying degrees) from the same problem: being confused with an error, operational problem, or other condition.

This specification defines a new status code to specifically address this situation.

1.1. Notational Conventions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

2. The 4xx (Preliminary Request Denied) Status Code

The 4xx (Preliminary Request Denied) status code indicates that the server is refusing a preliminary request.

A preliminary request is one that contains a Sec-Purpose header field [FETCH] with the value "prefetch".

This indication is only applicable to the associated request; future preliminary requests might or might not succeed.

3. IANA Considerations

The following entry should be registered in the "HTTP Status Codes" registry:

4. Security Considerations

The security considerations of [HTTP] and [FETCH] apply. Conceivably, the use of this status code could leak information about the internal state of the server; caution should be exercised to assure that it does not.

5. Normative References

[FETCH]
WHAT Working Group, "Fetch", , <https://fetch.spec.whatwg.org/>.
[HTTP]
Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke, Ed., "HTTP Semantics", STD 97, RFC 9110, DOI 10.17487/RFC9110, , <https://www.rfc-editor.org/rfc/rfc9110>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.

Author's Address

Mark Nottingham
Cloudflare
Melbourne
Australia