Page 1 of 1

Get error code from request

Posted: Mon Jun 09, 2014 3:18 pm
by Jordi Niubo

Hi,

I have the Login Service for my database and i will like to give the information of the error response.

{
"status":"404 Not Found",
"url":"https://api.appery.io/rest/1/db/login",
"response":{
"code":"DBUI110",
"description":"User 'r' does not exist."
}
}

How can i get this information if I call the service with the buttons? I don't know the name of the XHRResponse.

Thanks


Get error code from request

Posted: Mon Jun 09, 2014 4:08 pm
by Evgene Karachevtsev

Hello Jordi,

You can handle the event error of service. Detailed description of the error in this event is avalable from the variables: jqXHR, textStatus, errorThrown


Get error code from request

Posted: Mon Jun 09, 2014 4:36 pm
by Jordi Niubo

thanks :)