什么';300 HTTP状态码的有效用例是什么?

什么';300 HTTP状态码的有效用例是什么?,http,http-status-codes,Http,Http Status Codes,我从未使用过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

我从未使用过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.
但我不知道我什么时候会用这个


注意。这不是关于301永久/302临时重定向的问题,而是关于300的问题。

例如,它可以用于为视频显示不同的格式选项,列出具有不同扩展名的文件,或词义消歧。
摘自wiki。我的理解是,它适用于用户指定了一个资源,并且有多种可能的查看方式(多种语言的文本文档、多种格式和/或大小的图像等)的情况。例如,如果同一文档的英文版和德文版具有URL/doc-en.html和doc-de.html,则可以使用HTTP300和一个en和de版本列表响应对/doc.html的任何请求。