Error Codes Wiki

HTTP 307 Temporary Redirect — What It Means & How to Fix It

Warning3xx redirection

Overview

The HTTP 307 Temporary Redirect status code indicates the resource is temporarily at a different URL, and the client must use the same HTTP method for the redirect request.

Key Details

  • Unlike 302, this status code guarantees the HTTP method will not change during the redirect.
  • A POST request will remain a POST after following the redirect.
  • The client should continue using the original URL for future requests.
  • It was introduced in HTTP/1.1 to fix the ambiguity of 302 regarding method preservation.

Common Causes

  • A resource is temporarily available at a different location.
  • HTTPS enforcement redirecting HTTP to HTTPS while preserving the method.
  • Load balancing or failover directing traffic to a backup server.

Steps

  1. 1Follow the redirect to the URL in the Location header using the same HTTP method.
  2. 2Resend the original request body if applicable.
  3. 3Continue using the original URL for future requests.
  4. 4Verify the redirect preserves your intended HTTP method.

Tags

httpredirectiontemporarymethod-preservation

Related Items

More in 3xx Redirection

Frequently Asked Questions

It means the resource is temporarily at another URL and the client must use the exact same HTTP method for the redirected request.