Skip to content
3xx redirectionReserved, not used

306 (Unused)

A reserved status code. It appeared in an early HTTP/1.1 draft as Switch Proxy and no longer has any meaning.

What 306 (Unused) means

306 was used in an earlier draft of HTTP/1.1 and dropped before the final spec. RFC 9110 keeps the number reserved so it is never reused.

No server should send it, and clients have no defined way to handle it.

Example response

HTTP/1.1 306 (Unused)
Content-Type: text/plain; charset=utf-8

306 (Unused)

How to check for a 306 response

cURL

# Print only the status code (no -L, so the redirect isn't followed)
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/

JavaScript (Node.js)

const res = await fetch("https://example.com/", { redirect: "manual" });
if (res.status === 306) {
  console.log(res.status, res.statusText, res.headers.get("location"));
}

Python

import requests

res = requests.get("https://example.com/", allow_redirects=False)
if res.status_code == 306:
    print(res.status_code, res.reason, res.headers.get("Location"))

Go

client := &http.Client{
	CheckRedirect: func(*http.Request, []*http.Request) error {
		return http.ErrUseLastResponse
	},
}
res, err := client.Get("https://example.com/")
if err != nil {
	log.Fatal(err)
}
defer res.Body.Close()
if res.StatusCode == 306 {
	fmt.Println(res.Status, res.Header.Get("Location"))
}

Specification

306 (Unused) is defined in RFC 9110, section 15.4.7.

  • 305

    Use Proxy

    A deprecated redirect that told the client to repeat the request through the proxy named in the Location header.

  • 307

    Temporary Redirect

    The resource is temporarily at another URL, and the client must repeat the exact same request there, keeping the method and body.

← all 63 HTTP status codes

Type to search posts, tools and projects.

Keyboard shortcuts

Search+Kor/
Go to homegthenh
Go to bloggthenb
Go to projectsgthenp
Go to timelinegthent
Show this help?
Close search or helpesc