What are the implications of not sending a status code with header() function in PHP redirection scripts?

When not sending a status code with the header() function in PHP redirection scripts, the default status code of 200 (OK) is assumed. This can lead to potential issues, as it may not accurately reflect the intended response status. To solve this, explicitly specify the correct status code along with the redirection header to ensure proper handling by the browser and other clients.

header("Location: https://www.example.com", true, 302);
exit();