tool::http-status-detail
307 Temporary Redirect
Temporary redirect preserving the original HTTP method.
상태 코드
307
이름
Temporary Redirect
카테고리
3xx상세 설명
HTTP 307 Temporary Redirect는 요청한 리소스가 일시적으로 다른 URL에 있음을 나타냅니다. 302와 유사하지만, 307은 HTTP 메서드(POST, PUT 등)를 반드시 보존합니다. 302를 사용하면 일부 클라이언트가 POST를 GET으로 변경할 수 있어, 메서드 보존이 중요한 경우 307이 더 안전합니다.
주요 원인
- ▸POST 요청을 임시로 다른 엔드포인트로 전달해야 하는 경우
- ▸API 마이그레이션 중 메서드를 보존하며 임시 리다이렉트가 필요한 경우
- ▸로드 밸런서가 특정 서버로 임시 라우팅하는 경우
- ▸서비스 점검 중 POST 데이터 손실 없이 대체 서버로 전환하는 경우
해결 방법
- 1.영구 이동이라면 308 Permanent Redirect를 사용하세요
- 2.Location 헤더에 올바른 임시 URL이 설정되어 있는지 확인하세요
- 3.GET 전용 리다이렉트라면 302가 더 적합할 수 있습니다
- 4.무한 리다이렉트 루프가 없는지 확인하세요
관련 HTTP 헤더
LocationCache-Control응답 예시
HTTP/1.1 307 Temporary Redirect Location: https://api2.example.com/v1/users Cache-Control: no-cache
관련 상태 코드
300Multiple ChoicesMultiple options for the requested resource.→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.→
ad · 300×250
// related tools