tool::http-status-detail
300 Multiple Choices
Multiple options for the requested resource.
ステータスコード
300
名前
Multiple Choices
カテゴリ
3xx詳細説明
HTTP 300 Multiple Choicesは、要求されたリソースに複数の表現が存在し、クライアントが選択する必要があることを示します。コンテンツネゴシエーションで、サーバーが複数の形式や言語でリソースを提供できる場合に使用されます。実際にはほとんど使用されず、コンテンツネゴシエーションは通常自動的に処理されます。
主な原因
- ▸同じリソースの複数の言語バージョンが存在する場合(例:/doc/en、/doc/ja)
- ▸同じリソースが複数の形式(HTML、JSON、XML)で提供される場合
- ▸メディアファイルの複数の品質・サイズバージョンが存在する場合
解決方法
- 1.300は正常なレスポンスです。クライアントは提供された選択肢から一つを選択します
- 2.Locationヘッダーがある場合はデフォルトの選択肢を示します
- 3.自動ネゴシエーションのためAcceptおよびAccept-Languageヘッダーを活用してください
関連HTTPヘッダー
LocationContent-Typeレスポンス例
HTTP/1.1 300 Multiple Choices
Content-Type: application/json
{"options":[{"url":"/doc/en","language":"en"},{"url":"/doc/ja","language":"ja"}]}関連ステータスコード
301Moved PermanentlyThe resource has permanently moved to a new URL.→302FoundThe resource is temporarily at a different URL.→303See OtherRedirect to another resource using GET.→304Not ModifiedThe cached version is still valid; no new content to return.→307Temporary RedirectTemporary redirect preserving the original HTTP method.→
ad · 300×250
// related tools