HF RL Explorer

Task: Get HTTP Error Code from requests.exceptions.HTTPError

Task: Get HTTP Error Code from requests.exceptions.HTTPError: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that demonstrates how to extract the HTTP status code from a requests.exceptions.HTTPError exception when using the requests library.

The task

Write a Python script that demonstrates how to extract the HTTP status code from a `requests.exceptions.HTTPError` exception when using the `requests` library.

Part of PrimeIntellect/Terminal-Lego-15k.