Navigation
What do HTTP Status Code 300 mean?
HTTP Status Code 300 is one of the classes of 3xx(redirection) response code that indicates the request made by the client to the server has more than one possible response. The user has to choose one of the possible responses. The requested resource has multiple options, or there are multiple versions of the requested resource.
Status Code 300 response codes are very rarely used in comparisons to others as there is no standardized way of choosing one of the available responses.
The server should generate a Location Header if it has a preferred choice.
Location Header Field
In some responses, the Location header field is used to refer to a particular resource in connection to the response. The type of relationship is defined by the combination method of the request and status code semantics.
Location = URI-reference
It only provides a meaning when used with a 3xx (redirection) or 201 (created) status response.
Syntax
Location:<url> |
Example
Location:/index.html |
Status
300 Multiple Choices |
Specifications
Specifications | Title |
RFC 7231, section 6.4.1: 300 Multiple Choices | HypertextTransferProtocol(HTTP/1.1):Semantics and Content |
300 CODE REFERENCES
Rails HTTP Status Symbol | :multiple_choices |
Go HTTP Status Constant | http.StatusMultipleChoices |
Symfony HTTP Status Constant | Response::HTTP_MULTIPLE_CHOICES |
Python2 HTTP Status Constant | httplib.MULTIPLE_CHOICES |
Python3+ HTTP Status Constant | http.client.MULTIPLE_CHOICES |
Python3.5+ HTTP Status Constant | http.HTTPStatus.MULTIPLE_CHOICES |
Read more: HTTP Status Code – 201 Created
FAQs
What do 300 Multiple Choices mean?
HTTP Status Code 300(Multiple Choices) status codes are one of the classes of 3xx(redirection) response code that indicates the request made by the client to the server has more than one possible response. The user has to choose one of the possible responses.
What is the use of the Location Header field in 300 Multiple Choices?
300 Multiple Choices indicates the request made by the client to the server has more than one possible response. The user has to choose one of the possible responses. The requested resource has multiple options, or there are multiple versions of the requested resource. There is no standardized way of choosing one of the available responses. The server should generate a Location Header if it has a preferred choice.
Conclusion
I hope this article was able to help you with your doubts and queries related to the HTTP status code 300 (300 Multiple Choices). Still, if there are any queries related to this topic, feel free to ask in the comment section, we would be happy to assist you. Thank you.
Saurabh Chalise