Page 1 of 1

Returning error from Server side code

Posted: Thu Feb 06, 2014 1:22 pm
by araskin3i

I noticed in the examples provided in http://docs.appery.io/documentation/b...

that even if we wanted to return an error in a server side script we use response.success. Is that right? Isn't there a response.error that we could use? I want to make sure that the onError events on the client are triggered....


Returning error from Server side code

Posted: Thu Feb 06, 2014 5:51 pm
by Maryna Brodina

Hello! If you need error with some code (400-404, 500) - use response.error http://docs.appery.io/documentation/b...


Returning error from Server side code

Posted: Thu Feb 06, 2014 7:25 pm
by araskin3i

Thank you.