Thursday, February 18th 2021
Domains can now be redirected with a custom status code
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F6WKp5N55zyb3F0npPKWsY9%2F9b4286f7fdc022961f4c84f22fb69011%2Fredirect-status-code-og-image.png&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
Posted by
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F6WKp5N55zyb3F0npPKWsY9%2F9b4286f7fdc022961f4c84f22fb69011%2Fredirect-status-code-og-image.png&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
You can now select a temporary or permanent status code for Domain Redirects.
There are some subtle differences between these status codes:
- 307 Temporary Redirect: Not cached by client, method and body never changed.
- 302 Found: Not cached by client, method may or may not be changed to GET.
- 308 Permanent Redirect: Cached by client, method and body never changed.
- 301 Moved Permanently: Cached by client, method may or may not be changed to GET.
We recommend using status code 307 or 308 to avoid the ambiguity of non-GET methods, which is necessary when your application needs to redirect a public API.
Check out the documentation as well.