tool::http-status-detail
300 Multiple Choices
Multiple options for the requested resource.
상태 코드
300
이름
Multiple Choices
카테고리
3xx상세 설명
HTTP 300 Multiple Choices는 요청한 리소스에 대해 여러 표현 방법이 존재하며 클라이언트가 선택해야 함을 나타냅니다. 콘텐츠 협상에서 서버가 여러 형식이나 언어로 리소스를 제공할 수 있을 때 사용됩니다. 실제로는 거의 사용되지 않으며, 대부분의 콘텐츠 협상은 자동으로 처리됩니다.
주요 원인
- ▸동일 리소스의 여러 언어 버전이 존재하는 경우
- ▸동일 리소스의 다양한 형식(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/ko","language":"ko"}]}관련 상태 코드
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