Location
ResponseActiveThe Location response header tells the client to redirect to a different URL. It's used with 3xx redirect status codes (301, 302, 307, 308) and with 201 Created to indicate where the new resource was created.
Location: <url>
Description
The Location response header indicates the URL to redirect a page to. It only provides a meaning when served with a 3xx (redirection) or 201 (created) status response.
Examples
Permanent redirect
http
HTTP/1.1 301 Moved Permanently
Location: https://new.example.com/resourceResource created
http
HTTP/1.1 201 Created
Location: /api/users/42