I'm streaming audio to my player from Soundcloud API.

```
<audio></aidio>
<source src="soundcloud-track-url"></source>

```

I have onerror eventListener for `<audio>` and for `<source>` tags.

If stream is not loading (from source tag) it triggers `onerror`, but I don't know how to verify that this is because that the [per day limit](https://developers.soundcloud.com/docs/api/rate-limits) already reached.

So my logic: `if` I get an error on src load I want to split further, `if` this is because of "limits" - do this, `if` it is not because of "limits" - do that.

If per day limits are reached Soundcloud API return an HTTP 429 response code "Too Many Requests".

How do I can utilize "HTTP 429" information to get the expected result?