Skip to Content
It is currently December 6th, 2019, 12:55 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: April 3rd, 2019, 1:18 am 
Offline
Senior User
Senior User

Joined: September 7th, 2018, 9:00 am
Posts: 114
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  
Reply with quote  
PostPosted: April 3rd, 2019, 2:15 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7888
Location: Aachen (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)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

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


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

Joined: May 8th, 2004, 9:00 am
Posts: 10451
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  
Reply with quote  
PostPosted: April 4th, 2019, 4:32 pm 
Offline
Senior User
Senior User

Joined: September 7th, 2018, 9:00 am
Posts: 114
DJ Cassio 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  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 14 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:  
Powered by phpBB® Forum Software © phpBB Group