HF RL Explorer

Task: Get Current Page HTTP Status from JavaScript

Task: Get Current Page HTTP Status from JavaScript: a task in Terminal-Lego-15k (Harbor dataset). In web development, there is no built-in JavaScript API to directly retrieve the HTTP status code of the current page that was served to the browser. The XMLHttpRequest and fetch APIs only provide…

The task

In web development, there is no built-in JavaScript API to directly retrieve the HTTP status code of the current page that was served to the browser. The `XMLHttpRequest` and `fetch` APIs only provide status codes for *new* requests, not the original page load.

Part of PrimeIntellect/Terminal-Lego-15k.