307 Temporary Redirect

The client should retry at a temporary destination while preserving the request method and body.

All HTTP status codes

What does HTTP 307 mean?

A temporary relocation can be safe for a read yet consequential for a write. A 307 preserves method and body, so a redirected POST remains a POST. Inspect cross-origin credential handling and whether the destination is authorised to receive the submitted data. If the same move is permanent, 308 expresses that different caching and routing intent.

An investigation example

Illustrative upload-routing investigation
POST /uploads returns 307 Temporary Redirect.
Destination accepts GET only and returns 405.
Action: route the upload to an endpoint that supports the original POST.
Verify: permitted files arrive once with the correct content type and access controls.

When this response is used

  • An API temporarily moves a write operation to another endpoint without changing its semantics.
  • A service redirects an upload or request to a temporary region or processing host.

Diagnose the response

Check that the temporary destination can accept the original request, including its body, authentication and content type.

  • Check that the destination accepts the original method and body size. A working GET at that URL does not prove a redirected upload will succeed.
  • Review cross-origin credential and authorisation handling in the client. Do not solve an authentication failure by forwarding sensitive headers to an untrusted destination.
  • Trace the full redirect chain and verify that temporary routing does not loop between hosts. Keep using the original URL unless the service documents a permanent migration.

What it means for website monitoring

Check redirects using the affected request type. A successful GET through the chain does not prove that a preserved POST or upload works at the temporary destination.

Reference