HF RL Explorer

Task: Catching the Full Exception Message from PowerShell Web Requests

Task: Catching the Full Exception Message from PowerShell Web Requests: a task in Terminal-Lego-15k (Harbor dataset). When PowerShell's Invoke-WebRequest encounters an HTTP error (e.g., 400 Bad Request), the $ .Exception.Message property only returns a generic message like "The remote server…

The task

When PowerShell's `Invoke-WebRequest` encounters an HTTP error (e.g., 400 Bad Request), the `$_.Exception.Message` property only returns a generic message like *"The remote server returned an error: (400) Bad Request."* — it does **not** include the detailed error message from the HTTP response body.

Part of PrimeIntellect/Terminal-Lego-15k.