// http header · response header
Location
Target of a redirect or a created resource
What the Location header does
Location points to another URL. On a 3xx redirect it's where to go next; on a 201 Created it's the URL of the newly created resource. Relative and absolute URLs are both allowed.
Example
Location: /new-pathWhere it's used
Location is a response header. Response headers are sent by the server to describe the response and tell the client how to handle it.