300 Multiple Choices
The resource has more than one representation, such as different languages or formats, and the client needs to pick one.
What 300 Multiple Choices means
300 is meant for agent-driven content negotiation. The server lists the options and may suggest a preferred one in the Location header.
There is no standard format for the list, so browsers do not choose automatically and the code is rarely used. Most sites pick a version themselves using Accept or Accept-Language, or redirect with 302.
Headers that go with it
Location
Example response
HTTP/1.1 300 Multiple Choices
Location: https://example.com/new-page
Content-Type: text/plain; charset=utf-8
300 Multiple ChoicesHow to check for a 300 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 === 300) {
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 == 300:
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 == 300 {
fmt.Println(res.Status, res.Header.Get("Location"))
}Specification
300 Multiple Choices is defined in RFC 9110, section 15.4.1.
Related status codes
- 301
The page has moved to a new URL for good. Browsers and search engines follow the Location header and update their links.
- 302
The resource is temporarily at a different URL. Clients follow the Location header but keep using the original URL in future.
- 406
The server cannot produce a response in any format the client said it accepts in its Accept headers.