If you do not process the http request, you will not have access to the request or the answer, unless the code that it does does not provide any information what is wrong. So sorry, but the answer is no.
However, if I can: what exactly is needed from the response header? Since there may be other ways to get header information (like cookies)
Josep source share