handled error messages when ajax calls, reset and save fails.
- responseText method only appears when $.ajax is successful, so added a statusText with a message relating to the error
- notice error code could be 0 so accounted for that along side error code 500.
Edited by Henry Odiete