3xx Redirection
This moved for good. Start using the new address from now on.
Use 301 for permanent redirects when moving the resource for good and method preservation is not the main concern.
GET https://api.example.test/guides/http-basics301 Moved Permanently
# Headers
Location: https://api.example.test/docs/http-basicsThe old URL should stop being used and future traffic should move to the new path.
GET https://api.example.test/pricing301 Moved Permanently
# Headers
Location: https://example.com/pricingThe resource has a permanent new home and clients can update stored links.
Go somewhere else for now, but don’t assume this new address is the permanent one.
Go to this other address for now, and send the exact same kind of request there.
This moved for good, and you should keep using the same kind of request when you switch to the new address.