Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. error: function (jqXHR, exception)
  2. { if (jqXHR.status === 0) {
  3. alert('Not connect.n Verify Network.');
  4. } else if (jqXHR.status == 404) {
  5. alert('Requested page not found. [404]');
  6. } else if (jqXHR.status == 500) {
  7. alert('Internal Server Error [500].');
  8. } else if (exception === 'parsererror') {
  9. alert('Requested JSON parse failed.');
  10. } else if (exception === 'timeout') {
  11. alert('Time out error.');
  12. } else if (exception === 'abort') {
  13. alert('Ajax request aborted.');
  14. } else {
  15. //var test = $.parseJSON(jqXHR.responseText);
  16. alert('Uncaught Error.n' + jqXHR.responseText);
  17.  
  18.  
  19. }
  20. }
  21. }); here in this jqXHR.responseText gives me response like
  22. {"status":{"statusCode":555,"title":"Please provide the recipient","class":"requestController"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement