Any interest in the attached patch? It introduces a
"headers_response_code()" function which returns
SG(sapi_headers).http_response code. This information does not seem to
be otherwise available -- the status line does not come back with
headers_list().