Skip to Content
It is currently December 2nd, 2023, 1:37 am

All times are UTC - 6 hours [ DST ]




 [ 4 posts ] 
Author Message
PostPosted: April 3rd, 2019, 1:18 am 
Offline
Senior User
Senior User

Joined: September 7th, 2018, 9:00 am
Posts: 115
Hi

is there any error-code list about music request?

I did write a scirpt to use the radio server for the requests. I want to be able to use error codes for customized messages.

For instance= 200 => "Your song is now in list. In few minutes you will listen to it" ... instead of "request ok"
etc etc etc

but I need a list of these codes

I did find this page
https://support.spacial.com/hc/en-us/ar ... rror-Codes

but has not what I'm looking for.
Thanks in advance


Top
 Profile  
 
PostPosted: April 3rd, 2019, 2:15 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
Check the code/code.request.php file.
AFAIR the status codes for requests follow the generic HTTP-errorcode scheme:
i.e.: 200 - OK, 404 - Not Found, 403 - Forbidden
IIRC SAM doesn't use all of the available status codes and will reuse the same status code for multiple error types.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
 
PostPosted: April 3rd, 2019, 12:42 pm 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 10572
Location: Denver, CO
Request Response Codes are still listed in the HTML output Reference Guide located within SAM. Scroll down to Appendix

_________________
- Rob Oyler, SVS
Image


Top
 Profile  
 
PostPosted: April 4th, 2019, 4:32 pm 
Offline
Senior User
Senior User

Joined: September 7th, 2018, 9:00 am
Posts: 115
DJ Cassio (!empty($user->lang['WROTE'])) ? $user->lang['WROTE'] : ucwords(strtolower(str_replace('_', ' ', 'WROTE'))):
Request Response Codes are still listed in the HTML output Reference Guide located within SAM. Scroll down to Appendix


Exellent. Found it and reprogrammed the php script with the custom messages


Top
 Profile  
 
Display posts from previous:  Sort by  
 [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group