Added ajaxSetup to handle error | success ajax response.

Signed-off-by: ashwinh <ashwinh@cybage.com>