Hey Tapan,
Yes you can tracked the click errors with below mention approach :
Example :
Create a function which is return the response of click and call that function on each click, fire an event based on mentioned below response code :
200 - OK
404 - Not found
500 - Internal server error
All response code list :
http://www.restapitutorial.com/httpstatuscodes.html