Javascript – recommended return type for a webservice that doesn’t return anything (called with jquery)


I have a web service with some methods, they technically don't do much on the client.. i am calling it by jquery/ajax

What is the recommended return type, i would normally return JSON … but in the case that it doens't return anything .. do i return a boolean? i.e. true = succesful … and false = error ??

Any ideas?

Best Solution

How about HTTP Status codes:

200 OK
500 Error