Sorry... Session timeout

.....
Anyway ....
However, no matter what the 'filename' is (any jibberish at all) will succeed and respond with OK and add it to the queue. RadioBoss does gracefully handle this by quickly playing the next track as it just Errors on invalid Song, (which is good behavior).
I would like to see the insertTrack api method query the database AND/OR default rules put in place by the RadioBoss admin to respond to the request with useful information.
I would assume this to be async behavior in the code base.
Here is an example ->
OK - successful
6xx - Invalid Path (song) / Invalid Requst (unknown error) <-- Fail Over Response
7xx - Song/Artist/Title recently played. <-- Default/Global Rotation Rules Enforced Response
8xx - Song already in queue/playlist to be played <-- Playlist Rotation Rules Response
9xx - Authorization failed. IP not in allowed list. <-- Request IP not whitelisted Response
Have the response codes be simple JSON. Or XML if you must. I figure start at 600 as to not ever be confused with HTTP status codes.
Also, have a whitelist of request IPs so people can ONLY request from my website.
This way, I can eliminate a lot of conditional session based rules on the frontend about WHY someone can't request a song, rather, the reason comes back in the response from RadioBoss. This would eliminate the need to store information about song history/rules in localstorage, or have rules reset on each page refresh.
Your consideration would be much appreciated