Creates a new SoundCloudError.
HTTP status code
HTTP status text
Optionalbody: SoundCloudErrorBodyParsed JSON error response body from SoundCloud, if available
Optional ReadonlybodyThe full parsed error response body, if available
Optional ReadonlydocsLink to SoundCloud API documentation, if included in the error response
Optional ReadonlyerrorMachine-readable error code from SoundCloud (e.g. "invalid_client"), if present
ReadonlyerrorsIndividual error messages extracted from the response body's errors array
OptionalstackReadonlystatusHTTP status code of the failed response (e.g. 401, 404, 429)
ReadonlystatusHTTP status text of the failed response (e.g. "Unauthorized", "Not Found")
True if status is 403 Forbidden (insufficient permissions)
True if the OAuth error is invalid_grant (refresh token is dead; user must re-authorize)
True if status is 404 Not Found (resource does not exist)
True if the OAuth error means the user token is permanently unusable.
Does not include invalid_client — SoundCloud sometimes returns that as a transient 401.
True if status is 429 Too Many Requests (rate limit exceeded)
True if status is 5xx (SoundCloud server error)
True if status is 401 Unauthorized (invalid or expired token)
Error class thrown when a SoundCloud API request fails.
Provides structured access to HTTP status, error codes, and convenience getters for common error categories.
Example