<html>
<body>
<script src="something"></script>
<img src="something">
<script>
window.onload = function () {
//code logic here
}
</script>
</body>
</html>
I want to access the http response headers for all the http requests of this page so that I can determine their status.
such as response header for first script request and others subsequently.
In other words I want to count the no. of requests for which the response status was an error.