Location Header Explained
What the HTTP Location header does and when it's used.
Published October 16, 2026
The Location header specifies the target URL for a redirect response.
Key points
- Required on 3xx redirect responses and on a 201 Created response pointing to the new resource