What Is 307 Temporary Redirect

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 15, 2026

Quick Answer: The 307 Temporary Redirect is an HTTP status code indicating that the requested resource has been temporarily moved to a new URL. Unlike a 302, it ensures the original HTTP method and body are preserved during redirection.

Key Facts

Overview

The 307 Temporary Redirect is an HTTP status code used to indicate that the resource a client is attempting to access has been temporarily relocated to another URL. This redirect ensures that the original HTTP method (such as POST or GET) and message body are preserved, making it particularly useful for APIs and web services.

Unlike permanent redirects like 301, the 307 status explicitly tells clients and intermediaries that the move is temporary and future requests should continue to use the original URL. This behavior is critical in scenarios requiring session persistence or form data integrity.

How It Works

When a client sends a request and the server responds with a 307 status, the client is instructed to repeat the same request at a different URL while maintaining the original HTTP method and body. This behavior is crucial for maintaining data integrity in web applications.

Comparison at a Glance

Understanding how 307 compares to other redirect types clarifies its role in web architecture.

Redirect TypeMethod Preserved?SEO ImpactCacheable?Use Case
307 Temporary RedirectYesNo equity transferNoTemporary backend migration
302 FoundNo (historically)Temporary indexingSometimesLegacy temporary redirect
301 Moved PermanentlyYes (in modern implementations)Full equity transferYesPermanent URL change
303 See OtherNo (forces GET)N/ANoPost-redirect-after-POST pattern
308 Permanent RedirectYesFull equity transferYesPermanent move with method preservation

This comparison highlights that 307 is unique in combining temporary redirection with strict method preservation. While 302 was often misused for this purpose, 307 was introduced to eliminate ambiguity and ensure predictable behavior across clients and servers, especially in RESTful APIs.

Why It Matters

The 307 Temporary Redirect plays a vital role in maintaining the reliability and security of web communications, especially in dynamic environments where backend services shift without altering client expectations.

By enforcing strict adherence to HTTP semantics, the 307 Temporary Redirect provides a reliable mechanism for temporary routing that supports both user experience and backend integrity in modern web applications.

Sources

  1. WikipediaCC-BY-SA-4.0

Missing an answer?

Suggest a question and we'll generate an answer for it.