Jordi Niubo
Posts: 0
Joined: Tue Nov 26, 2013 12:08 pm

Get error code from request

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Get error code from request

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

Jordi Niubo
Posts: 0
Joined: Tue Nov 26, 2013 12:08 pm

Get error code from request

thanks :)

Return to “Issues”