HTTP Status Codes / 3xx HTTP Status Codes / HTTP 307

307 Temporary Redirect (since HTTP/1.1)

This is an educational reference page about HTTP 307 Temporary Redirect. The page itself is served as 200 OK so it can be indexed as HTTP documentation.

In this case, the request should be repeated with another URI; however, future requests should still use the original URI. In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original request. For example, a POST request should be repeated using another POST request.

What it means

HTTP 307 means the resource is temporarily at another URL and the client must preserve the request method and body.

Common causes

How to fix it

Example response

HTTP/1.1 307 Temporary Redirect
Location: https://api.example.com/new-region

Developer notes

307 is the safer temporary redirect for APIs because it preserves method and request body.

Related comparisons

3xx redirection – further action needs to be taken in order to complete the request


HTTP status code lookup
By Ping Now, a website/API/service uptime monitor
Data from Wikipedia