我从来没有使用300状态代码,但我认为它很重要(200和400一直都会出现)。
我知道它代表着“多种选择”和“多种选择”。并且您返回资源列表:
The requested resource corresponds to any one of a set of representations,
each with its own specific location, and agent- driven negotiation information
(section 12) is being provided so that the user (or user agent) can select
a preferred representation and redirect its request to that location.
Unless it was a HEAD request, the response SHOULD include an entity containing
a list of resource characteristics and location(s) from which the user or
user agent can choose the one most appropriate.
但我不知道何时会使用它。
NB。这不是关于301永久/ 302临时重定向的问题,而是关于300。