SignalWireRestError
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.
Properties
status_code
HTTP status code returned by the API (e.g., 404, 422, 500).
body
Response body from the API (JSON dict if parseable, otherwise raw string).
url
The URL path that was requested.
method
The HTTP method used ("GET", "POST", "PUT", "PATCH", "DELETE").