300 Multiple Choices

300 Multiple Choices

The 300 HTTP status code is returned by the server to indicate that more than one HTTP response is available as a result of the HTTP request.

You can Check Your URLs HTTP Code for FREE

When you receive the HTTP response status code 300 Multiple Choices, it means that there are multiple options available in response to your request.

The server is providing you with different choices, and it's up to you to decide which option suits your needs best.

The response can be cached by default, but if you want to change this behavior, the server can include specific HTTP caching headers in the response.

When you receive the HTTP response status code 300 Multiple Choices, the server may provide different options in the response. If you make an HTTP HEAD request, there won't be any message body.

However, for other types of HTTP requests, the message body will contain a list of choices from which you can pick the most suitable response.

Each option is specified using the Link HTTP header, which is recommended by the specification RFC 7231. The server can also indicate its preferred choice using the Location HTTP header, if there is one. This way, you can select the resource that best fits your needs based on the provided options.

In this example, when the client requests a resource, the server responds with multiple available options. These options are included in the HTTP headers with paths to each resource. If the client makes a HEAD request, it can choose which Link to follow, but it may also automatically select the one specified by the Location HTTP header.

However, since this response follows a GET request, a message body is included to present the client with a clickable list of options. This way, the client can easily select the most suitable resource from the presented choices.

Request

GET /tech-news HTTP/1.1
Host: www.example.re

Response

HTTP/1.1 300 Multiple Choices
Link: </leading/news.html>; rel=”alternate”
Link: </bleeding/news.html>; rel=”alternate”
Location: </leading/news.html>
Content-Type: text/html
Content-Length: 164

< h2 >Choose from one of the following

< ul>
< li >< a href= /leading/news.html >Leading edge news
< li >< a href= /bleeding/news.html >Bleeding edge news

The 300 Multiple Choices status code indicates that there are multiple options available for a requested resource.

The server provides a list of these options in the message body, and the client can choose the most appropriate one.

This status code is typically used when a resource has multiple representations, and the client needs to select one based on its preferences or requirements.

Related articles

999 Request Denied

999 Request Denied The 999 HTTP response status code is...

599 Network Connect Timeout Error

599 Network Connect Timeout Error The 599 HTTP response status...

598 Network read timeout error

598 Network read timeout error The 598 HTTP response status...

561 Unauthorized

561 Unauthorized The 561 HTTP response status code means there...

530 Site Frozen

530 Site Frozen The 530 HTTP response status code is...

999 Request Denied

561 Unauthorized

530 Site Frozen