307 Temporary Redirect

Like 302, but the HTTP method and body must be preserved when following the redirect.

Status code307
Status textTemporary Redirect
Category3xx Redirection
Response has bodyUsually
SpecificationRFC 9110

What does 307 Temporary Redirect mean?

Like 302, but the HTTP method and body must be preserved when following the redirect. It belongs to the 3xx Redirection class, which means further action is needed to complete the request, usually following a different URL.

When do APIs return 307?

Temporary redirects where a POST must stay a POST.

How to fix a 307 Temporary Redirect

Nothing to fix. Prefer 307 over 302 for non-GET requests to avoid method rewriting.

Reproduce a 307 response

The fastest way to understand a status code is to trigger one and read the full response. Open the API tester and send a request to https://httpbin.org/status/307 — you will see the 307 status along with every response header the server sent. Comparing those headers against a working request is often what reveals the cause.

When you are debugging a real endpoint, check the response headers as carefully as the body, and confirm you are using the right HTTP method for the operation.

Related 3xx status codes