I am sending the request via AJAX to the server. I want to send the response to the AJAX call back whenever an error occurs. So for that in