It's not mentioned explicitly, but the return value when SETTING, is the OLD status code.
e.g.
<?php
$a = http_response_code();
$b = http_response_code(202);
$c = http_response_code();
var_dump($a, $b, $c);
// Result:
// int(200)
// int(200)
// int(202)
?>