Custom exception class for REST API errors. Extends Python’s built-in Exception
class. Raised when an HTTP request to the SignalWire REST API returns a non-success
status code.
HTTP status code returned by the API (e.g., 404, 422, 500).
Response body from the API (JSON dict if parseable, otherwise raw string).
The URL path that was requested.
The HTTP method used ("GET", "POST", "PUT", "PATCH", "DELETE").